pan/bi: Fix 1DArray image coordinate retrieval
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 24 Sep 2021 14:10:03 +0000 (16:10 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Sep 2021 18:44:05 +0000 (18:44 +0000)
commitf256ec2a8811b9fa3f9245c0768118d7adc5262f
tree67b64fc9590674567985570f9da03615f2bc189c
parentd3e0cf3d323347a5bb96e70dbcc19ccae06c5bf8
pan/bi: Fix 1DArray image coordinate retrieval

In NIR image instructions, the array index always follows the last
image coordinate, meaning that array index is in coord.y for 1D
arrays. But the current panfrost ABI wants it in coord.z regardless of
the image dimension.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13078>
src/panfrost/bifrost/bifrost_compile.c