ir3/nir: Fix 1d array readonly images
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 22 Feb 2022 10:35:55 +0000 (11:35 +0100)
committerMarge Bot <emma+marge@anholt.net>
Mon, 28 Feb 2022 23:33:22 +0000 (23:33 +0000)
commit58d72f45e58969dcd45e953487b1bd2338dbb05a
treefc73e7d88de2ccfae7ad2321e099df6033751779
parent21ac044c3e25888eb9f1bc72ed09da825e257ae7
ir3/nir: Fix 1d array readonly images

ncoords includes the array index, and the NIR source has the array index
as its last component, so we have to insert the extra y coordinate in
the middle in this case.

Fixes: 0bb0cac ("freedreno/ir3: handle image buffer")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15114>
src/freedreno/ci/freedreno-a630-fails.txt
src/freedreno/ir3/ir3_compiler_nir.c