aco: handle nir_intrinsic_image_deref_{load,store} with lod
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 6 Jan 2020 09:21:04 +0000 (10:21 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 9 Jan 2020 06:58:33 +0000 (07:58 +0100)
commit4d49a7ac737f298b136ab6447e18c6e4654f8ad5
tree1de730e6ffb662eacc71a6de28073025d2f1f3df
parente77ff89914cb2c0e0e28244f2a0e61862d6d1955
aco: handle nir_intrinsic_image_deref_{load,store} with lod

Use image_load_mip and image_store_mip respectively if the lod
parameter isn't zero.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/compiler/aco_instruction_selection.cpp