nir/lower_non_uniform: lower image/texture instructions taking derefs
authorRhys Perry <pendingchaos02@gmail.com>
Sat, 21 Sep 2019 14:49:18 +0000 (15:49 +0100)
committerRhys Perry <pendingchaos02@gmail.com>
Fri, 11 Oct 2019 14:26:58 +0000 (14:26 +0000)
commit5ef04d798278703d2dac11ae56fde1338d134023
treea3a22a0420e9eb5bdd42c8d555848fe07de58adc
parent7e3b900c80bc9eb8c3c57337bf699d448a61c9ce
nir/lower_non_uniform: lower image/texture instructions taking derefs

v2: always assert on the texture/sampler handle's num_components
v3: replicate the deref inside the loop
v4: remove a case of useless line wrapping

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_lower_non_uniform_access.c