Mesa (main): llvmpipe: disable 64-bit integer textures.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Nov 14 21:12:22 UTC 2021


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Nov  1 09:43:49 2021 +1000

llvmpipe: disable 64-bit integer textures.

This fixes some crashes in VK-GL-CTS where it doesn't deal with these.

Cc: mesa-stable

Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13617>

---

 src/gallium/drivers/llvmpipe/lp_screen.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index 8128682eb74..9624bd1952a 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -757,6 +757,16 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
           format_desc->block.bits != 96) {
          return false;
       }
+
+      /* Disable 64-bit integer formats for RT/samplers.
+       * VK CTS crashes with these and they don't make much sense.
+       */
+      int c = util_format_get_first_non_void_channel(format_desc->format);
+      if (c >= 0) {
+         if (format_desc->channel[c].pure_integer && format_desc->channel[c].size == 64)
+            return false;
+      }
+
    }
 
    if (!(bind & PIPE_BIND_VERTEX_BUFFER) &&



More information about the mesa-commit mailing list