[Piglit] [PATCH] vp-max-array: fix incorrect program parameters query
Brian Paul
brianp at vmware.com
Tue Aug 30 09:56:10 PDT 2011
The vertex program declares a local parameter array of a certain size
but we were querying GL_MAX_PROGRAM_PARAMETERS_ARB instead of
GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB to get the local parameter limit.
This fixes Mesa bug https://bugs.freedesktop.org/show_bug.cgi?id=40405
---
tests/shaders/vp-max-array.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/shaders/vp-max-array.c b/tests/shaders/vp-max-array.c
index 67c8c3a..b0e541d 100644
--- a/tests/shaders/vp-max-array.c
+++ b/tests/shaders/vp-max-array.c
@@ -65,11 +65,11 @@ piglit_init(int argc, char **argv)
piglit_require_vertex_program();
glGetProgramivARB(GL_VERTEX_PROGRAM_ARB,
- GL_MAX_PROGRAM_PARAMETERS_ARB,
+ GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB,
& max_parameters);
if (max_parameters < 96) {
if (! piglit_automatic)
- printf("GL_MAX_PROGRAM_PARAMETERS_ARB < 96\n");
+ printf("GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB < 96\n");
piglit_report_result(PIGLIT_FAIL);
}
--
1.7.3.4
More information about the Piglit
mailing list