amd/common: use ac_image_load when lod is zero
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 4 Jan 2018 15:24:22 +0000 (16:24 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 5 Jan 2018 08:49:45 +0000 (09:49 +0100)
commit50cfad0298bbb4e341664ed0ec8b4d9b429988dc
treee89d8341e1382d11ac7f9bd43961bd08c8a4418b
parent85769759bf1f3297af36eb9aed67d9de418ca12a
amd/common: use ac_image_load when lod is zero

This might decrease VGPR spilling, because we no longer
have to use v4i32 for 2D fetches when level == 0. We now
use v2i32 for those cases.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/common/ac_nir_to_llvm.c