Mesa (master): softpipe,llvmpipe: mark BPTC formats as unsupported

Ilia Mirkin imirkin at kemper.freedesktop.org
Tue Aug 12 23:28:06 UTC 2014


Module: Mesa
Branch: master
Commit: 19563f0880fb82c73b7e8fd05d12e36832ca0b04
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=19563f0880fb82c73b7e8fd05d12e36832ca0b04

Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Tue Jul 22 21:08:14 2014 -0400

softpipe,llvmpipe: mark BPTC formats as unsupported

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>

---

 src/gallium/drivers/llvmpipe/lp_screen.c |    5 +++++
 src/gallium/drivers/softpipe/sp_screen.c |    5 +++++
 2 files changed, 10 insertions(+)

diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index e10a763..347b1af 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -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;
    }
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c
index 13f4723..7be39d4 100644
--- a/src/gallium/drivers/softpipe/sp_screen.c
+++ b/src/gallium/drivers/softpipe/sp_screen.c
@@ -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).
     */




More information about the mesa-commit mailing list