llvmpipe: Do not advertise S3TC rendering support.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 22 Apr 2010 14:12:30 +0000 (15:12 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 22 Apr 2010 14:12:30 +0000 (15:12 +0100)
src/gallium/drivers/llvmpipe/lp_screen.c

index 6d309c6b6474741b95d2d3be2b01649cd3ff415a..f453b9fe5aed49fa0ce94b43b5f3695e41e5c770 100644 (file)
@@ -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;
 }