From: Denis Pauk Date: Sat, 14 Dec 2019 07:54:48 +0000 (+0200) Subject: gallium/swr: Enable support bptc format. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3acc15f4f0d19e56d763f5e0e10e5fb7991b3959;p=mesa.git gallium/swr: Enable support bptc format. Reuse Code from: f69bc797e1 gallium/auxiliary: Add helper support for bptc format compress/decompress Signed-off-by: Denis Pauk Reviewed-by: Bruce Cherniak Reviewed-by: Dave Airlie CC: Marek Olšák CC: Tim Rowley --- diff --git a/src/gallium/drivers/swr/swr_screen.cpp b/src/gallium/drivers/swr/swr_screen.cpp index e54be2dc35b..b2e3132b2a7 100644 --- a/src/gallium/drivers/swr/swr_screen.cpp +++ b/src/gallium/drivers/swr/swr_screen.cpp @@ -141,8 +141,7 @@ swr_is_format_supported(struct pipe_screen *_screen, return false; } - if (format_desc->layout == UTIL_FORMAT_LAYOUT_BPTC || - format_desc->layout == UTIL_FORMAT_LAYOUT_ASTC || + if (format_desc->layout == UTIL_FORMAT_LAYOUT_ASTC || format_desc->layout == UTIL_FORMAT_LAYOUT_FXT1) { return false;