Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2071)

Unified Diff: client/deps/glbench/src/yuv2rgb_2.glslv

Issue 2152003: Moved selection of I915 hack out of the YUV shader. (Closed) Base URL: ssh://git@chromiumos-git//autotest.git
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/deps/glbench/src/yuv2rgb_2.glslf ('k') | client/deps/glbench/src/yuvtest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/deps/glbench/src/yuv2rgb_2.glslv
diff --git a/client/deps/glbench/src/yuv2rgb_2.glslv b/client/deps/glbench/src/yuv2rgb_2.glslv
index 61575256a21a9385a2b47dd1889bfd95b81d2511..9af7ecab48cef15283fa1368a03ca3a2fde32f37 100644
--- a/client/deps/glbench/src/yuv2rgb_2.glslv
+++ b/client/deps/glbench/src/yuv2rgb_2.glslv
@@ -2,8 +2,6 @@ uniform float imageHeight;
attribute vec4 c;
-#define I915_WORKAROUND 1
-
varying vec2 lineCounter;
varying vec2 yPlane;
varying vec2 uPlane;
@@ -11,7 +9,7 @@ varying vec2 vPlane;
void main() {
gl_Position = c;
-#if I915_WORKAROUND
+#if defined(I915_WORKAROUND)
gl_TexCoord[0].xy = vec2(c.y * imageHeight / 4.0, 0.0);
gl_TexCoord[0].zw = vec2(c.x, (2.0 * c.y + 1.0) / 3.0);
gl_TexCoord[1].xy = vec2(c.x / 2.0, (c.y + 1.0) / 6.0);
« no previous file with comments | « client/deps/glbench/src/yuv2rgb_2.glslf ('k') | client/deps/glbench/src/yuvtest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698