diff options
author | José Fonseca <[email protected]> | 2011-04-14 13:28:10 +0100 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-09-23 07:58:46 -0600 |
commit | ffeed5da6e568836867f09f1acb7ce660d091d4a (patch) | |
tree | 2b77b81f53317f4e91bcf15dc5125cdd98daed7d /src/gallium/drivers/svga/svga_screen.c | |
parent | 8bf3fb4eca5594f8348de2f8fb67bc94127f8d5a (diff) |
svga: Don't use the new depth formats for surfaces that will never be sampled from.
Mitigates issues with hosts where support for these new depth formats is
flaky.
Diffstat (limited to 'src/gallium/drivers/svga/svga_screen.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index e8f17ba30b0..98479f0d84e 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/gallium/drivers/svga/svga_screen.c @@ -404,9 +404,9 @@ svga_is_format_supported( struct pipe_screen *screen, * out of sync: */ if(tex_usage & (PIPE_BIND_RENDER_TARGET | PIPE_BIND_DEPTH_STENCIL)) - return svga_translate_format_render(ss, format) != SVGA3D_FORMAT_INVALID; + return svga_translate_format_render(ss, format, tex_usage) != SVGA3D_FORMAT_INVALID; else - return svga_translate_format(ss, format) != SVGA3D_FORMAT_INVALID; + return svga_translate_format(ss, format, tex_usage) != SVGA3D_FORMAT_INVALID; } |