summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKrzysztof Raszkowski <[email protected]>2019-12-03 14:43:57 +0100
committerKrzysztof Raszkowski <[email protected]>2019-12-03 16:51:24 +0000
commit07adc4746041cd39e4cbfe1ca1bab078931b6c4b (patch)
treef2dd66787da1d48433b50a386f4f6fb3c0af9ca6 /src
parentb31637c45338c04ba7cba7e380ad29e91a115e0c (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/swr/swr_screen.cpp4
1 files changed, 3 insertions, 1 deletions
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;
}