[Piglit] [PATCH] 0001-fixed-oes_compressed_etc2_texture-miptree-failure.patch
Guo, Johney
Weijun.Guo at amd.com
Tue Apr 15 03:06:28 PDT 2014
Viewport should be 128x128, or else, piglit_probe_rect_halves_equal_rgba would get wrong pixel value.
---
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20140415/584c2f4a/attachment-0001.html>
More information about the Piglit
mailing list