[Piglit] [PATCH 2/4] gl-2.1/minmax: Actually use the Y dimension we get for calculating OQ bits.

Eric Anholt eric at anholt.net
Wed Mar 14 13:59:00 PDT 2012


---
 tests/spec/gl-2.1/minmax.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/spec/gl-2.1/minmax.c b/tests/spec/gl-2.1/minmax.c
index f94f34d..7073968 100644
--- a/tests/spec/gl-2.1/minmax.c
+++ b/tests/spec/gl-2.1/minmax.c
@@ -115,7 +115,7 @@ test_oq_bits()
 	 */
 
 	glGetIntegerv(GL_MAX_VIEWPORT_DIMS, dims);
-	minbits = log2((float)dims[0] * dims[0] * 2);
+	minbits = log2((float)dims[0] * dims[1] * 2);
 	if (minbits > 32)
 		minbits = 32;
 
-- 
1.7.9.1



More information about the Piglit mailing list