From 599d634c2c179434950ea93dc0f622d825814ee2 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Sat, 21 Sep 2019 15:50:25 +0100 Subject: [PATCH] nir/lower_input_attachments: pass on non-uniform access flag Signed-off-by: Rhys Perry Reviewed-by: Ian Romanick Reviewed-by: Jason Ekstrand --- src/compiler/nir/nir_lower_input_attachments.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.30.2