softpipe: DXT formats not really supported.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Wed, 16 Jul 2008 05:10:10 +0000 (14:10 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Wed, 16 Jul 2008 05:13:09 +0000 (14:13 +0900)
src/gallium/drivers/softpipe/sp_screen.c

index e9926bf41f93bc54a3886fd58056e28804e05499..f6193bfaf9a1fa01ae4542120a250c1cee00b0bc 100644 (file)
@@ -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;