gallivm: handle texture arrays in non-fragment shaders with lod.
authorDave Airlie <airlied@redhat.com>
Fri, 7 May 2021 01:26:35 +0000 (11:26 +1000)
committerMarge Bot <eric+marge@anholt.net>
Fri, 7 May 2021 02:41:29 +0000 (02:41 +0000)
commit83a05caaf2ce4fa9d6605eddd5658bf400f642fb
tree4037bcdeb2466e20862d295e4d91c478f22b5db7
parentcca9201922bdd9015bf5aac3566da30e5b5d4518
gallivm: handle texture arrays in non-fragment shaders with lod.

We have to unwind the lod into the scalar path correctly.

Fixes a crash with renderdoc demo

Fixes: e168d148d76d ("gallivm/nir: handle non-uniform texture offsets")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10676>
src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c