aco: Fix image instructions with lod when 2d_view_of_3d is enabled on GFX9.
authorGeorg Lehmann <dadschoorse@gmail.com>
Wed, 17 Aug 2022 17:43:15 +0000 (19:43 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 31 Aug 2022 17:44:38 +0000 (17:44 +0000)
commita82b9d60017f214ea419eb96e30c1da820e90aae
tree813f6cf0c48f5d8ecbe4bc8ce504920919aeb954
parent6eb4dfca2344d123c1d7115e68d5a208ebbaba83
aco: Fix image instructions with lod when 2d_view_of_3d is enabled on GFX9.

If there's a lod parameter it matter if the image is 3d or 2d because
the hw reads either the fourth or third component as lod. So detect
3d images and place the lod at the third component otherwise.

Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18114>
src/amd/ci/radv-renoir-aco-fails.txt
src/amd/ci/radv-vega10-aco-fails.txt
src/amd/compiler/aco_instruction_selection.cpp