From: Krzysztof Raszkowski Date: Tue, 3 Dec 2019 13:43:57 +0000 (+0100) Subject: gallium/swr: Fix crash when use GL_TDFX_texture_compression_FXT1 format. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07adc4746041cd39e4cbfe1ca1bab078931b6c4b;p=mesa.git gallium/swr: Fix crash when use GL_TDFX_texture_compression_FXT1 format. Reject the new formats in swr to prevent crashes because it doesn't know how to handle the new formats. Reviewed-by: Jan Zielinski --- diff --git a/src/gallium/drivers/swr/swr_screen.cpp b/src/gallium/drivers/swr/swr_screen.cpp index 23bc3541ba4..ac53fc518f0 100644 --- a/src/gallium/drivers/swr/swr_screen.cpp +++ b/src/gallium/drivers/swr/swr_screen.cpp @@ -142,7 +142,9 @@ swr_is_format_supported(struct pipe_screen *_screen, } if (format_desc->layout == UTIL_FORMAT_LAYOUT_BPTC || - format_desc->layout == UTIL_FORMAT_LAYOUT_ASTC) { + format_desc->layout == UTIL_FORMAT_LAYOUT_ASTC || + format_desc->layout == UTIL_FORMAT_LAYOUT_FXT1) + { return false; }