summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-07-16 14:10:10 +0900
committerJosé Fonseca <[email protected]>2008-07-16 14:13:09 +0900
commit0c2c0a862c40c0ed39a9ac52344d22c8a7c8b100 (patch)
treeb99612cd9f294ca9e0a1f37c3a7e9ace46d654d2 /src
parent99233e483d38aedb929ceff3f2ebc9340b42eb3a (diff)
softpipe: DXT formats not really supported.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/softpipe/sp_screen.c13
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;