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

Unified Diff: client/deps/glbench/src/yuvtest.cc

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.glslv ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/deps/glbench/src/yuvtest.cc
diff --git a/client/deps/glbench/src/yuvtest.cc b/client/deps/glbench/src/yuvtest.cc
index fb1b9107751585a460dc29549edfca828c965248..4a2207912f86d96785c31783a73006242d33f05a 100644
--- a/client/deps/glbench/src/yuvtest.cc
+++ b/client/deps/glbench/src/yuvtest.cc
@@ -43,7 +43,13 @@ GLuint YuvToRgbShaderProgram(int type, GLuint vertex_buffer,
goto done;
{
- program = InitShaderProgram(yuv_to_rgb_vertex, yuv_to_rgb_fragment);
+#if defined(I915_WORKAROUND)
+ const char* header = "#define I915_WORKAROUND 1\n";
+#else
+ const char* header = NULL;
+#endif
+ program = InitShaderProgramWithHeader(header, yuv_to_rgb_vertex,
+ yuv_to_rgb_fragment);
int imageWidthUniform = glGetUniformLocation(program, "imageWidth");
int imageHeightUniform = glGetUniformLocation(program, "imageHeight");
« no previous file with comments | « client/deps/glbench/src/yuv2rgb_2.glslv ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698