pan/bi: Fix 1D array indexing on Valhall
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 24 Jun 2022 21:26:49 +0000 (17:26 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 19 Sep 2022 17:22:58 +0000 (17:22 +0000)
commitbd8c9442f9dbf127416055d558921af1638fb66e
treedd58c270f1b0bd3110b593217d1344c9b0b6ff95
parent76d6bb4822476bb2fa1c26c0595a092d3ad51053
pan/bi: Fix 1D array indexing on Valhall

Array index always goes in the fourth 16-bit component on Valhall. I'm unsure
whether that should also apply to Bifrost. f256ec2a881 ("pan/bi: Fix 1DArray
image coordinate retrieval") says that it should be in the third component on
Bifrost, but I can't remember why that would be the case.

Fixes OpenCL test image_streams.write.1darray on Valhall.

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