From 3baeb1c4d16e013c74db424b86d1ba533d6429f4 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Mon, 31 May 2021 17:43:45 +0200 Subject: [PATCH] llvmpipe: reject unsupported shader-image formats Reviewed-By: Mike Blumenkrantz Reviewed-by: Roland Scheidegger Part-of: --- src/gallium/drivers/llvmpipe/lp_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index acf3e5d9224..6146b121cea 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -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)