From: Rhys Perry Date: Sat, 21 Sep 2019 14:50:25 +0000 (+0100) Subject: nir/lower_input_attachments: pass on non-uniform access flag X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=599d634c2c179434950ea93dc0f622d825814ee2;p=mesa.git nir/lower_input_attachments: pass on non-uniform access flag Signed-off-by: Rhys Perry Reviewed-by: Ian Romanick Reviewed-by: Jason Ekstrand --- 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);