[Piglit] [PATCH 5/5] vp-max-array: Exercise GL_MAX_PROGRAM_ENV_PARAMETERS_ARB
Ian Romanick
idr at freedesktop.org
Tue Aug 30 11:25:13 PDT 2011
From: Ian Romanick <ian.d.romanick at intel.com>
---
tests/shaders/vp-max-array.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/tests/shaders/vp-max-array.c b/tests/shaders/vp-max-array.c
index 6b49473..82bd8af 100644
--- a/tests/shaders/vp-max-array.c
+++ b/tests/shaders/vp-max-array.c
@@ -206,4 +206,16 @@ piglit_init(int argc, char **argv)
"local", max_local_parameters - 47, max_local_parameters - 1);
(void) piglit_compile_program(GL_VERTEX_PROGRAM_ARB, shader_source);
+
+ /* Generate a program that uses as much of the env parameter space
+ * as possible. This basically tries to hit both ends of the
+ * program.env array without making assumptions about the relative
+ * amount of parameter space. We only assume that the
+ * minimum-maximums of 96 are respected by the GL implementation.
+ */
+ snprintf(shader_source, len, max_local_template,
+ "env",
+ "env", max_env_parameters - 47, max_env_parameters - 1);
+
+ (void) piglit_compile_program(GL_VERTEX_PROGRAM_ARB, shader_source);
}
--
1.7.4.4
More information about the Piglit
mailing list