[Piglit] [PATCH 2/2] GL_ARB_texture_compression/invalid_formats: Print decoded enum strings.
Chad Versace
chad.versace at linux.intel.com
Mon Oct 15 12:14:18 PDT 2012
On 10/15/2012 11:11 AM, Eric Anholt wrote:
> ---
> 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;
> }
> }
Reviewed-by: Chad Versace <chad.versace at linux.intel.com>
More information about the Piglit
mailing list