rgtc: llvmpipe/softpipe refuse RGTC until u_format has support.
authorDave Airlie <airlied@redhat.com>
Mon, 28 Feb 2011 03:33:17 +0000 (13:33 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 28 Feb 2011 03:34:25 +0000 (13:34 +1000)
So far I haven't implemented the u_format code for these.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/softpipe/sp_screen.c

index 21e8012d46af36db318c9d92f2a05c827b36549a..2c32aa93cdf3bca8f75ace2b89449042935de23a 100644 (file)
@@ -278,6 +278,11 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
       return util_format_s3tc_enabled;
    }
 
+   /* u_format doesn't support RGTC yet */
+   if (format_desc->layout == UTIL_FORMAT_LAYOUT_RGTC) {
+      return FALSE;
+   }
+
    /*
     * Everything else should be supported by u_format.
     */
index 6d47fb9628032431a1b89f67974444ba8b42d9db..685fbfc308785a1422f8f8caf04a1fbe205d641a 100644 (file)
@@ -248,6 +248,11 @@ softpipe_is_format_supported( struct pipe_screen *screen,
       return util_format_s3tc_enabled;
    }
 
+   /* u_format doesn't implement RGTC yet */
+   if (format_desc->layout == UTIL_FORMAT_LAYOUT_RGTC) {
+       return FALSE;
+   }
+
    /*
     * Everything else should be supported by u_format.
     */