nir: Use derefs in nir_lower_samplers
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 19 Mar 2018 17:53:45 +0000 (10:53 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 23 Jun 2018 03:54:00 +0000 (20:54 -0700)
commit75286c2d083cdbdfb202a93349e567df0441d5f7
tree1f94a06a9bb13fadef18039b4ef4de1b8bd863d0
parent36efae1d6647a0495fc368bda9e6d2c14b81f482
nir: Use derefs in nir_lower_samplers

We change glsl_to_nir to provide derefs for bot textures and samplers
while we're at it.  This makes the lowering much easier since we only
either replace sources or remove them.

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/compiler/glsl/gl_nir_lower_samplers.c
src/compiler/glsl/glsl_to_nir.cpp
src/mesa/drivers/dri/i965/brw_program.c