intel/fs: Use image_deref intrinsics instead of image_var
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 23 Mar 2018 17:27:12 +0000 (10:27 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 23 Jun 2018 03:54:00 +0000 (20:54 -0700)
commit71cd9ebed9b670ae09b9e2a6982596dcc0efd65e
treec47b27f480f35c597e6eaf16f0b5d0976078116e
parent032b845edf2e008c5bd8a883f295c536a7664081
intel/fs: Use image_deref intrinsics instead of image_var

Since we had to rewrite the deref walking loop anyway, I took the
opportunity to make it a bit clearer and more efficient.  In particular,
in the AoA case, we will now emit one minmax instead of one per array
level.

Acked-by: Rob Clark <robdclark@gmail.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_fs.h
src/intel/compiler/brw_fs_nir.cpp
src/intel/compiler/brw_nir.c