llvmpipe: reject unsupported shader-image formats

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10467>
This commit is contained in:
Erik Faye-Lund
2021-05-31 17:43:45 +02:00
committed by Marge Bot
parent 9c8c0c2bb3
commit 3baeb1c4d1
+1 -1
View File
@@ -649,7 +649,7 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
if (MAX2(1, sample_count) != MAX2(1, storage_sample_count))
return false;
if (bind & PIPE_BIND_RENDER_TARGET) {
if (bind & (PIPE_BIND_RENDER_TARGET | PIPE_BIND_SHADER_IMAGE)) {
if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) {
/* this is a lie actually other formats COULD exist where we would fail */
if (format_desc->nr_channels < 3)