[Piglit] [PATCH 1/2] fbo-generatemipmap-formats: increase tolerance for compressed formats

Marek Olšák maraeo at gmail.com
Tue Aug 28 14:39:55 PDT 2012


---
 tests/fbo/fbo-generatemipmap-formats.c |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tests/fbo/fbo-generatemipmap-formats.c b/tests/fbo/fbo-generatemipmap-formats.c
index 1282a1d..4a7d58e 100644
--- a/tests/fbo/fbo-generatemipmap-formats.c
+++ b/tests/fbo/fbo-generatemipmap-formats.c
@@ -359,6 +359,15 @@ test_mipmap_drawing(int x, int y, int level, GLuint internalformat)
 	if (a_size > 8)
 		a_size = 8;
 
+	if (compressed) {
+		l_size = MIN2(7, l_size);
+		i_size = MIN2(7, i_size);
+		r_size = MIN2(7, r_size);
+		g_size = MIN2(7, g_size);
+		b_size = MIN2(7, b_size);
+		a_size = MIN2(7, a_size);
+	}
+
 	if (i_size) {
 		piglit_set_tolerance_for_bits(i_size, i_size, i_size, i_size);
 	} else if (l_size) {
-- 
1.7.9.5



More information about the Piglit mailing list