summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2016-05-17 22:41:24 (GMT)
committerEric Anholt <eric@anholt.net>2016-05-19 19:09:44 (GMT)
commitfc1af5fef997dd857cdc85c0dd0b7bd8e47ce3b6 (patch)
tree3a143b04da85873409c1ea005533d00d0acd3e57
parentd1ad1c8f36f3c330882544be06b531d3db31f0b3 (diff)
downloadpiglit-fc1af5fef997dd857cdc85c0dd0b7bd8e47ce3b6.tar.gz
piglit-fc1af5fef997dd857cdc85c0dd0b7bd8e47ce3b6.tar.xz
shader_runner: Initialize gl_max_varying_components more often.
Back in the day it was called MAX_VARYING_FLOATS, which is an alias for MAX_VARYING_COMPONENTS. Fixes a bunch of varying-components tests skipping on vc4. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
-rw-r--r--tests/shaders/shader_runner.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 253df6a..ab72c1f 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -3306,7 +3306,8 @@ piglit_init(int argc, char **argv)
piglit_is_extension_supported("GL_ARB_vertex_shader"))
glGetIntegerv(GL_MAX_VERTEX_UNIFORM_COMPONENTS,
&gl_max_vertex_uniform_components);
- if (piglit_get_gl_version() >= 30 ||
+ if (piglit_get_gl_version() >= 20 ||
+ piglit_is_extension_supported("GL_ARB_vertex_shader") ||
piglit_is_extension_supported("GL_ARB_geometry_shader4") ||
piglit_is_extension_supported("GL_EXT_geometry_shader4"))
glGetIntegerv(GL_MAX_VARYING_COMPONENTS,