aco: use ac_get_image_dim for array check when image intrinsic
authorQiang Yu <yuq825@gmail.com>
Tue, 30 May 2023 11:22:48 +0000 (19:22 +0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Jun 2023 09:21:59 +0000 (09:21 +0000)
commit2d0e8e0258004f09e3e5d6b2998c2eb0110ddc7d
tree3b2a52bed639b914a8ab36d1e6a4614053fdb235
parented97cd92dc3227ebe57bba568d4e24152bbc0292
aco: use ac_get_image_dim for array check when image intrinsic

This is to avoid missing array flag when <=GFX8 and 3D image
in which case is treated as 2D array image.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23094>
src/amd/compiler/aco_instruction_selection.cpp
src/amd/compiler/tests/test_d3d11_derivs.cpp