[Piglit] [PATCH 1/4] fbo-mipmap-copypix: print src/dest formats for failures

Brian Paul brianp at vmware.com
Tue Jun 21 22:44:31 UTC 2016


---
 tests/fbo/fbo-mipmap-copypix.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/fbo/fbo-mipmap-copypix.c b/tests/fbo/fbo-mipmap-copypix.c
index 152e56f..da77f6f 100644
--- a/tests/fbo/fbo-mipmap-copypix.c
+++ b/tests/fbo/fbo-mipmap-copypix.c
@@ -212,6 +212,10 @@ test_mipmap_copypixels(GLenum srcIntFormat, GLenum dstIntFormat,
       p = piglit_probe_pixel_rgba(piglit_width/2, piglit_height/2, colors[level]);
       if (!p) {
          printf("  Mipmap level %d\n", level);
+	 printf("  Source tex format: %s\n",
+		piglit_get_gl_enum_name(srcIntFormat));
+	 printf("  Destination tex format: %s\n",
+		piglit_get_gl_enum_name(dstIntFormat));
          if (useReadDrawPix)
             printf("  Using glRead/DrawPixels()\n");
          else
-- 
1.9.1



More information about the Piglit mailing list