softpipe,llvmpipe: mark BPTC formats as unsupported
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 23 Jul 2014 01:08:14 +0000 (21:08 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 12 Aug 2014 23:21:04 +0000 (19:21 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/softpipe/sp_screen.c

index e10a7630ed84f5a10dc9e67edadc34c18915e420..347b1af4f14c4c1caaa1d6941cdf1c894a1a2eaf 100644 (file)
@@ -409,6 +409,11 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
       }
    }
 
+   if (format_desc->layout == UTIL_FORMAT_LAYOUT_BPTC) {
+      /* Software decoding is not hooked up. */
+      return FALSE;
+   }
+
    if (format_desc->layout == UTIL_FORMAT_LAYOUT_S3TC) {
       return util_format_s3tc_enabled;
    }
index 13f47233269a13fb7222a8545dd299a84cd8259b..7be39d4f61896a55d96caa690d230195e97d902a 100644 (file)
@@ -322,6 +322,11 @@ softpipe_is_format_supported( struct pipe_screen *screen,
          return FALSE;
    }
 
+   if (format_desc->layout == UTIL_FORMAT_LAYOUT_BPTC) {
+      /* Software decoding is not hooked up. */
+      return FALSE;
+   }
+
    /*
     * All other operations (sampling, transfer, etc).
     */