diff options
author | José Fonseca <jrfonseca@tungstengraphics.com> | 2008-07-19 12:04:37 +0900 |
---|---|---|
committer | José Fonseca <jrfonseca@tungstengraphics.com> | 2008-07-19 12:32:29 +0900 |
commit | 8aafc03b260ab8923f1b373f7effa75bcdb40a72 (patch) | |
tree | 0274cc6cad2d6993ba8ea3fdd34c49254c532d47 /src/gallium/drivers/softpipe | |
parent | ff26c50153b3a348b35843262ceb27062ab37214 (diff) | |
download | external_mesa3d-8aafc03b260ab8923f1b373f7effa75bcdb40a72.zip external_mesa3d-8aafc03b260ab8923f1b373f7effa75bcdb40a72.tar.gz external_mesa3d-8aafc03b260ab8923f1b373f7effa75bcdb40a72.tar.bz2 |
gallium: Finer grained is_format_supported.
Diffstat (limited to 'src/gallium/drivers/softpipe')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_screen.c | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c index f6193bf..3f9d4b0 100644 --- a/src/gallium/drivers/softpipe/sp_screen.c +++ b/src/gallium/drivers/softpipe/sp_screen.c @@ -115,23 +115,19 @@ softpipe_get_paramf(struct pipe_screen *screen, int param) */ static boolean softpipe_is_format_supported( struct pipe_screen *screen, - enum pipe_format format, uint type ) + enum pipe_format format, + enum pipe_texture_target target, + unsigned tex_usage, + unsigned geom_flags ) { - switch (type) { - case PIPE_TEXTURE: - case PIPE_SURFACE: - switch(format) { - case PIPE_FORMAT_DXT1_RGB: - case PIPE_FORMAT_DXT1_RGBA: - case PIPE_FORMAT_DXT3_RGBA: - case PIPE_FORMAT_DXT5_RGBA: - return FALSE; - default: - return TRUE; - } - default: - assert(0); + switch(format) { + case PIPE_FORMAT_DXT1_RGB: + case PIPE_FORMAT_DXT1_RGBA: + case PIPE_FORMAT_DXT3_RGBA: + case PIPE_FORMAT_DXT5_RGBA: return FALSE; + default: + return TRUE; } } |