freedreno/ir3: fix image-to-tex flags, remove 3d -> array hack
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 15 Nov 2021 23:31:24 +0000 (18:31 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 16 Nov 2021 00:33:31 +0000 (00:33 +0000)
commit8c9a86cb577e3eda370cb06178aa3331307a777c
tree76ee1915a80f31eb5eaea429a731db47b3fdf9fe
parenta9c1cc63c6c1bf47386ff19f1bec5466fde781b4
freedreno/ir3: fix image-to-tex flags, remove 3d -> array hack

The function would return both the 3d and array flags set for 2d array,
and would return just 3d for cubes. Fix the flags so that they are
appropriate for images.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13804>
src/freedreno/ir3/ir3_compiler_nir.c
src/freedreno/ir3/ir3_image.c