[Piglit] [PATCH 01/40] shader_runner: Add "texcoord <unit> (%f, %f, %f, %f)" syntax.
Kenneth Graunke
kenneth at whitecape.org
Sat Jun 6 19:11:27 PDT 2015
vpfp-generic has a syntax for calling glMultiTexCoord4fv in its test
scripts. By adding this to shader_runner, we'll be able to replace all
uses of vpfp-generic for ARB programs.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
tests/shaders/shader_runner.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 1827e08..c45c955 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -2672,6 +2672,9 @@ piglit_display(void)
glTexParameteri(GL_TEXTURE_2D_ARRAY,
GL_TEXTURE_COMPARE_FUNC,
GL_GREATER);
+ } else if (sscanf(line, "texcoord %d ( %f , %f , %f , %f )",
+ &x, c + 0, c + 1, c + 2, c + 3) == 5) {
+ glMultiTexCoord4fv(GL_TEXTURE0 + x, c);
} else if (string_match("texparameter ", line)) {
handle_texparameter(line + strlen("texparameter "));
} else if (string_match("uniform", line)) {
--
2.4.2
More information about the Piglit
mailing list