[Piglit] [PATCH 01/10] shader_runner: allow GL_MAX_VERTEX_OUTPUT_COMPONENTS in requirements
Marek Olšák
maraeo at gmail.com
Thu Apr 30 05:36:16 PDT 2015
From: Marek Olšák <marek.olsak at amd.com>
---
tests/shaders/shader_runner.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 4063bdd..d6d6f55 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -86,6 +86,7 @@ extern float piglit_tolerance[4];
static struct component_version gl_version;
static struct component_version glsl_version;
static struct component_version glsl_req_version;
+static int gl_max_vertex_output_components;
static int gl_max_fragment_uniform_components;
static int gl_max_vertex_uniform_components;
static int gl_max_varying_components;
@@ -559,6 +560,11 @@ process_requirement(const char *line)
const char *desc;
} getint_limits[] = {
{
+ "GL_MAX_VERTEX_OUTPUT_COMPONENTS",
+ &gl_max_vertex_output_components,
+ "vertex output components",
+ },
+ {
"GL_MAX_FRAGMENT_UNIFORM_COMPONENTS",
&gl_max_fragment_uniform_components,
"fragment uniform components",
@@ -2698,6 +2704,9 @@ piglit_init(int argc, char **argv)
(major * 100) + minor);
#ifdef PIGLIT_USE_OPENGL
+ if (piglit_get_gl_version() >= 32)
+ glGetIntegerv(GL_MAX_VERTEX_OUTPUT_COMPONENTS,
+ &gl_max_vertex_output_components);
glGetIntegerv(GL_MAX_FRAGMENT_UNIFORM_COMPONENTS,
&gl_max_fragment_uniform_components);
glGetIntegerv(GL_MAX_VERTEX_UNIFORM_COMPONENTS,
--
2.1.0
More information about the Piglit
mailing list