softpipe/llvmpipe: don't advertize support for ASTC
authorRoland Scheidegger <sroland@vmware.com>
Tue, 24 Nov 2015 17:25:06 +0000 (18:25 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 24 Nov 2015 17:26:11 +0000 (18:26 +0100)
33339775565154040e0c4ea2e196217dccc08cdf added support for ASTC textures to
gallium. They don't have any helpers hooked up for software decoding, however,
so cannot support them in drivers relying on util code for decoding.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/softpipe/sp_screen.c

index 9f5e7378ac74b2621196c17625059ea8fff495ac..899f28da7d31170b19e86412148fe1a0fda2d831 100644 (file)
@@ -460,7 +460,8 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
       }
    }
 
-   if (format_desc->layout == UTIL_FORMAT_LAYOUT_BPTC) {
+   if (format_desc->layout == UTIL_FORMAT_LAYOUT_BPTC ||
+       format_desc->layout == UTIL_FORMAT_LAYOUT_ASTC) {
       /* Software decoding is not hooked up. */
       return FALSE;
    }
index bb4cef29ec97af9145c3855cb5e4f37910802c80..2ae72b2332b16ce2778d018e01632b0a8952b7da 100644 (file)
@@ -362,7 +362,8 @@ softpipe_is_format_supported( struct pipe_screen *screen,
          return FALSE;
    }
 
-   if (format_desc->layout == UTIL_FORMAT_LAYOUT_BPTC) {
+   if (format_desc->layout == UTIL_FORMAT_LAYOUT_BPTC ||
+       format_desc->layout == UTIL_FORMAT_LAYOUT_ASTC) {
       /* Software decoding is not hooked up. */
       return FALSE;
    }