[Piglit] [REGRESSION] 0001-fixed-oes_compressed_etc2_texture-miptree-failure.patch

Guo, Johney Weijun.Guo at amd.com
Mon Apr 14 01:57:14 PDT 2014


>From ffd128015d1c50cc91270802d03680cf1378568b Mon Sep 17 00:00:00 2001
From: gwj <w at 1.com>
Date: Mon, 14 Apr 2014 16:02:36 +0800
Subject: [PATCH] fixed oes_compressed_etc2_texture-miptree failure

---
 tests/spec/gles-3.0/oes_compressed_etc2_texture-miptree.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/spec/gles-3.0/oes_compressed_etc2_texture-miptree.c b/tests/spec/gles-3.0/oes_compressed_etc2_texture-miptree.c
index 59d8748..cc397cb 100644
--- a/tests/spec/gles-3.0/oes_compressed_etc2_texture-miptree.c
+++ b/tests/spec/gles-3.0/oes_compressed_etc2_texture-miptree.c
@@ -289,6 +289,7 @@ piglit_display(void)
 	bool pass = true;
 
 	glClear(GL_COLOR_BUFFER_BIT);
+	glViewport(0, 0, window_width, window_height);
 	for (level = 0; level < num_levels; ++level) {
 		glUniform2f(level_pixel_size_loc,
 		            (float) level_width,
-- 
1.8.4.msysgit.0

It should be draw in a rectangle box of 128x128, or else, piglit_probe_rect_halves_equal_rgba would get wrong pixel value.


More information about the Piglit mailing list