[Mesa-dev] [PATCH 2/4] softpipe, llvmpipe: mark BPTC formats as unsupported

Ilia Mirkin imirkin at alum.mit.edu
Tue Jul 22 18:11:01 PDT 2014


Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
 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 3218eb6..6d580c4 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -408,6 +408,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).
     */
-- 
1.8.5.5



More information about the mesa-dev mailing list