From: Dave Airlie Date: Mon, 28 Feb 2011 03:33:17 +0000 (+1000) Subject: rgtc: llvmpipe/softpipe refuse RGTC until u_format has support. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e3709c26a643604053561729ba26cb03e3a772e3;p=mesa.git rgtc: llvmpipe/softpipe refuse RGTC until u_format has support. So far I haven't implemented the u_format code for these. Signed-off-by: Dave Airlie --- diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index 21e8012d46a..2c32aa93cdf 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -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. */ diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c index 6d47fb96280..685fbfc3087 100644 --- a/src/gallium/drivers/softpipe/sp_screen.c +++ b/src/gallium/drivers/softpipe/sp_screen.c @@ -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. */