summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorRhys Perry <[email protected]>2019-09-21 15:50:25 +0100
committerRhys Perry <[email protected]>2019-10-11 14:26:58 +0000
commit599d634c2c179434950ea93dc0f622d825814ee2 (patch)
tree7706d5e247ee29e54271efd9a72f7cfb8e7f1920 /src/compiler
parent5ef04d798278703d2dac11ae56fde1338d134023 (diff)
nir/lower_input_attachments: pass on non-uniform access flag
Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/nir/nir_lower_input_attachments.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_lower_input_attachments.c b/src/compiler/nir/nir_lower_input_attachments.c
index a8e71f7113a..a82e887ad8c 100644
--- a/src/compiler/nir/nir_lower_input_attachments.c
+++ b/src/compiler/nir/nir_lower_input_attachments.c
@@ -115,6 +115,8 @@ try_lower_input_load(nir_function_impl *impl, nir_intrinsic_instr *load,
tex->src[3].src = load->src[2];
}
+ tex->texture_non_uniform = nir_intrinsic_access(load) & ACCESS_NON_UNIFORM;
+
nir_ssa_dest_init(&tex->instr, &tex->dest, 4, 32, NULL);
nir_builder_instr_insert(&b, &tex->instr);