nir/lower_input_attachments: pass on non-uniform access flag
authorRhys Perry <pendingchaos02@gmail.com>
Sat, 21 Sep 2019 14:50:25 +0000 (15:50 +0100)
committerRhys Perry <pendingchaos02@gmail.com>
Fri, 11 Oct 2019 14:26:58 +0000 (14:26 +0000)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_lower_input_attachments.c

index a8e71f7113ac3d404f5f4d390c8f967f092565da..a82e887ad8c6bf50ec9919b6728708910f5d7672 100644 (file)
@@ -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);