aco: fix image load/store with lod and 1D images
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 5 Mar 2020 10:32:06 +0000 (11:32 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 5 Mar 2020 13:29:27 +0000 (14:29 +0100)
commit7618fe1b484eecc2246202df1e53ee607c6d70c4
tree5d9142675c14b70cd54a2d224fa1a310c98a27fd
parentcc9493f78ed3b366aaf1f4933c76984180a81a60
aco: fix image load/store with lod and 1D images

Make sure to add the lod value if non-null as the 2nd operand.

Fixes dEQP-VK.image.load_store_lod.with_format.1d.* on all gens
except GFX9.

Fixes: 4d49a7ac737 ("aco: handle nir_intrinsic_image_deref_{load,store} with lod")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4060>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4060>
src/amd/compiler/aco_instruction_selection.cpp