diff options
author | José Fonseca <[email protected]> | 2010-04-22 15:12:30 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-04-22 15:12:30 +0100 |
commit | 510669cd87994b39e50a8ab1ac24110e6a299e4d (patch) | |
tree | d50f1bf91e565f3b0b5a04a51853897388c6df15 /src/gallium/drivers/llvmpipe/lp_screen.c | |
parent | 6ae9975ea08b64d7f4e7a2c6c535c14280bef843 (diff) |
llvmpipe: Do not advertise S3TC rendering support.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_screen.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_screen.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index 6d309c6b647..f453b9fe5ae 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -181,16 +181,6 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen, target == PIPE_TEXTURE_3D || target == PIPE_TEXTURE_CUBE); - switch(format) { - case PIPE_FORMAT_DXT1_RGB: - case PIPE_FORMAT_DXT1_RGBA: - case PIPE_FORMAT_DXT3_RGBA: - case PIPE_FORMAT_DXT5_RGBA: - return util_format_s3tc_enabled; - default: - break; - } - if(tex_usage & PIPE_BIND_RENDER_TARGET) { if(format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN) return FALSE; @@ -220,6 +210,16 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen, return FALSE; } + switch(format) { + case PIPE_FORMAT_DXT1_RGB: + case PIPE_FORMAT_DXT1_RGBA: + case PIPE_FORMAT_DXT3_RGBA: + case PIPE_FORMAT_DXT5_RGBA: + return util_format_s3tc_enabled; + default: + break; + } + return TRUE; } |