ir3: support texture and sampler index with offsets
authorAmber <amber@igalia.com>
Fri, 27 Jan 2023 09:41:06 +0000 (10:41 +0100)
committerMarge Bot <emma+marge@anholt.net>
Sat, 28 Jan 2023 18:00:31 +0000 (18:00 +0000)
commit17b610771dd158cd8a6b737b0de5f72162c57312
tree3c37a11eec1115d70dd8b25c88acaa3b12d649d0
parent196882a1477a69ba1593db8bdaaf6726fe914fca
ir3: support texture and sampler index with offsets

"If this texture instruction has a nir_tex_src_texture_offset source,
then the texture index is given by texture_index + texture_offset."

This fixes the failures for:
spec@arb_arrays_of_arrays@execution@sampler@fs-nested-struct-arrays-nonconst-nested-array
spec@arb_gl_spirv@execution@uniform@sampler2d-nonconst-nested-array

Signed-off-by: Amber Amber <amber@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20954>
src/freedreno/ci/freedreno-a618-fails.txt
src/freedreno/ci/freedreno-a630-fails.txt
src/freedreno/ir3/ir3_compiler_nir.c