summaryrefslogtreecommitdiff
path: root/tests/shaders/CMakeLists.gles2.txt
diff options
context:
space:
mode:
authorTom Gall <tom.gall@linaro.org>2013-01-08 14:40:14 -0600
committerChad Versace <chad.versace@linux.intel.com>2013-01-09 12:31:00 -0800
commit06d3d19ec7e15cb1353e33de2e2910fdf0bd01b7 (patch)
tree0842b02f54079180b58f228f1033c1fd3bbecd7d /tests/shaders/CMakeLists.gles2.txt
parent2fc922fb5e2a8fbad78c91d27b96dda87bf5ee55 (diff)
shader_runner: add gles2 support
Add a number of GLES2 specific workarounds to shader_runner_gles_workarounds.h. Add CMakeLists.gles2 into shaders directory so that shader_runner is build when gles2 is selected. Add piglit-vbo.cpp to util/CMakeLists.gles2.txt. In tests/util/piglit-vbo.cpp add one small ifdef PIGLIT_USE_OPENGL_ES2, vertex_attrib_description::setup so the data_type GL_INTEGER for attributes is prevented from use and emits an error message. Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Signed-off-by: Tom Gall <tom.gall@linaro.org>
Diffstat (limited to 'tests/shaders/CMakeLists.gles2.txt')
-rw-r--r--tests/shaders/CMakeLists.gles2.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/shaders/CMakeLists.gles2.txt b/tests/shaders/CMakeLists.gles2.txt
new file mode 100644
index 000000000..2fde3e3a4
--- /dev/null
+++ b/tests/shaders/CMakeLists.gles2.txt
@@ -0,0 +1,7 @@
+link_libraries(
+ piglitutil_${piglit_target_api}
+)
+
+piglit_add_executable(shader_runner_gles2 shader_runner.c)
+
+# vim: ft=cmake: