Mesa (master): llvmpipe: llvmpipe doesn't support pure integers yet.

Dave Airlie airlied at kemper.freedesktop.org
Wed Oct 26 06:51:41 PDT 2011


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Oct 26 15:50:47 2011 +0200

llvmpipe: llvmpipe doesn't support pure integers yet.

Should fix: https://bugs.freedesktop.org/show_bug.cgi?id=42240

Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/gallium/drivers/llvmpipe/lp_screen.c      |    5 +++++
 src/gallium/drivers/llvmpipe/lp_test_format.c |    3 +++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index 1464776..daf1491 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -287,6 +287,11 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
       return FALSE;
    }
 
+   /* llvmpipe doesn't support pure integer yet */
+   if (util_format_is_pure_integer(format)) {
+      return FALSE;
+   }
+
    /*
     * Everything else should be supported by u_format.
     */
diff --git a/src/gallium/drivers/llvmpipe/lp_test_format.c b/src/gallium/drivers/llvmpipe/lp_test_format.c
index 4152ca6..6aca66d 100644
--- a/src/gallium/drivers/llvmpipe/lp_test_format.c
+++ b/src/gallium/drivers/llvmpipe/lp_test_format.c
@@ -345,6 +345,9 @@ test_all(struct gallivm_state *gallivm, unsigned verbose, FILE *fp)
          continue;
       }
 
+      if (util_format_is_pure_integer(format))
+	 continue;
+
       if (format_desc->layout == UTIL_FORMAT_LAYOUT_S3TC &&
           !util_format_s3tc_enabled) {
          continue;



More information about the mesa-commit mailing list