[Piglit] [PATCH 2/2] GL_ARB_texture_compression/invalid_formats: Print decoded enum strings.
Eric Anholt
eric at anholt.net
Mon Oct 15 11:11:13 PDT 2012
---
tests/spec/arb_texture_compression/invalid-formats.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/tests/spec/arb_texture_compression/invalid-formats.c b/tests/spec/arb_texture_compression/invalid-formats.c
index e63014d..940e12c 100644
--- a/tests/spec/arb_texture_compression/invalid-formats.c
+++ b/tests/spec/arb_texture_compression/invalid-formats.c
@@ -344,7 +344,9 @@ piglit_init(int argc, char **argv)
printf("Driver reported the following compressed formats:\n");
for (i = 0; i < num_compressed_formats; i++) {
- printf(" 0x%04x\n", compressed_formats[i]);
+ printf(" 0x%04x: %s\n",
+ compressed_formats[i],
+ piglit_get_gl_enum_name(compressed_formats[i]));
}
printf("\n");
fflush(stdout);
@@ -458,8 +460,9 @@ piglit_init(int argc, char **argv)
log_header = false;
}
- fprintf(stderr, " 0x%04x\n",
- compressed_formats[i]);
+ fprintf(stderr, " 0x%04x: %s\n",
+ compressed_formats[i],
+ piglit_get_gl_enum_name(compressed_formats[i]));
pass = false;
}
}
--
1.7.10.4
More information about the Piglit
mailing list