Mesa (main): llvmpipe: reject unsupported shader-image formats

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jul 12 16:54:07 UTC 2021


Module: Mesa
Branch: main
Commit: 3baeb1c4d16e013c74db424b86d1ba533d6429f4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3baeb1c4d16e013c74db424b86d1ba533d6429f4

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Mon May 31 17:43:45 2021 +0200

llvmpipe: reject unsupported shader-image formats

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10467>

---

 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)



More information about the mesa-commit mailing list