[Piglit] [PATCH 01/18] shader_runner: Use piglit_heigth for framebuffer height.

Fabian Bieler fabianbieler at fastmail.fm
Mon Jun 10 15:26:38 PDT 2013


It used to be piglit_width which works, too, as the framebuffer is hardcoded
to 250x250 pixels.
---
 tests/shaders/shader_runner.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 7fc74aa..515fde1 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -1751,7 +1751,7 @@ piglit_display(void)
 				  c + 0, c + 1,
 				  c + 2, c + 3, c + 4, c + 5) == 6) {
 			x = c[0] * piglit_width;
-			y = c[1] * piglit_width;
+			y = c[1] * piglit_height;
 			if (x >= piglit_width)
 				x = piglit_width - 1;
 			if (y >= piglit_height)
-- 
1.8.1.2



More information about the Piglit mailing list