mesa/st: Only use 16-bit ints or floats in the NIR path.
authorEmma Anholt <emma@anholt.net>
Mon, 17 May 2021 19:08:35 +0000 (12:08 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 20 May 2021 23:12:12 +0000 (23:12 +0000)
commitc2f80baa9398c708b773f96a27521282b2fad8fb
tree6caa7c6b8f06e6f3cd376cb3c7111562988f987e
parent307139c7f94f9093f61f857c7731759bf0766002
mesa/st: Only use 16-bit ints or floats in the NIR path.

For i915g or other drivers using the draw path, llvmpipe (reasonably)
reports int16 support.  However, if we try to link and translate an int16
shader using st_glsl_to_tgsi, it will throw assertion failures.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10874>
src/mesa/state_tracker/st_extensions.c