diff options
author | José Fonseca <[email protected]> | 2008-07-16 14:10:10 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-07-16 14:13:09 +0900 |
commit | 0c2c0a862c40c0ed39a9ac52344d22c8a7c8b100 (patch) | |
tree | b99612cd9f294ca9e0a1f37c3a7e9ace46d654d2 /src/gallium | |
parent | 99233e483d38aedb929ceff3f2ebc9340b42eb3a (diff) |
softpipe: DXT formats not really supported.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_screen.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c index e9926bf41f9..f6193bfaf9a 100644 --- a/src/gallium/drivers/softpipe/sp_screen.c +++ b/src/gallium/drivers/softpipe/sp_screen.c @@ -119,11 +119,16 @@ softpipe_is_format_supported( struct pipe_screen *screen, { switch (type) { case PIPE_TEXTURE: - /* softpipe supports all texture formats */ - return TRUE; case PIPE_SURFACE: - /* softpipe supports all (off-screen) surface formats */ - return TRUE; + 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); return FALSE; |