[Piglit] [PATCH 3/7] glsl-max-varyings: Make it probe the whole rectangle drawn per varying.

Eric Anholt eric at anholt.net
Thu May 19 19:09:26 PDT 2011


---
 tests/shaders/glsl-max-varyings.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/shaders/glsl-max-varyings.c b/tests/shaders/glsl-max-varyings.c
index fd6ec47..ca2b842 100644
--- a/tests/shaders/glsl-max-varyings.c
+++ b/tests/shaders/glsl-max-varyings.c
@@ -232,9 +232,10 @@ printf("GL_MAX_VARYING_FLOATS = %i\n", max_components);
 			GLboolean ok;
 			float green[3] = {0.0, 1.0, 0.0};
 
-			ok = piglit_probe_pixel_rgb(coord_from_index(col) + 5,
-						    coord_from_index(row) + 5,
-						    green);
+			ok = piglit_probe_rect_rgb(coord_from_index(col),
+						   coord_from_index(row),
+						   10, 10,
+						   green);
 			if (!ok) {
 				printf("  Failure with %d vec4 varyings used "
 				       "in varying index %d\n",
-- 
1.7.5.1



More information about the Piglit mailing list