diff options
author | Eric Anholt <[email protected]> | 2014-08-11 16:00:28 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-08-12 14:03:35 -0700 |
commit | 8e504ce4207b6ca7863700b0f41f0985f4bbe7d0 (patch) | |
tree | 941bdce8006b6ce905e0bb6f2d339b11618d58eb /src/gallium/drivers/vc4/vc4_screen.c | |
parent | af35afed0661a6b06b407a49035e3b293bff2df0 (diff) |
vc4: Stash some debug code for format support checks.
This can be useful for looking at context init setup and texture format
choices, and there's no reason for the silly retval computation we do if
you're not going to have this code (mostly from freedreno) around.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_screen.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_screen.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_screen.c b/src/gallium/drivers/vc4/vc4_screen.c index 08419306f43..62c5b2b4972 100644 --- a/src/gallium/drivers/vc4/vc4_screen.c +++ b/src/gallium/drivers/vc4/vc4_screen.c @@ -376,6 +376,15 @@ vc4_screen_is_format_supported(struct pipe_screen *pscreen, if (usage & PIPE_BIND_TRANSFER_WRITE) retval |= PIPE_BIND_TRANSFER_WRITE; +#if 0 + if (retval != usage) { + fprintf(stderr, + "not supported: format=%s, target=%d, sample_count=%d, " + "usage=0x%x, retval=0x%x\n", util_format_name(format), + target, sample_count, usage, retval); + } +#endif + return retval == usage; } |