intel/nir: preserve access value when duping intrinsic

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 6339aba775 ("intel/compiler: Lower SSBO and shared loads/stores in NIR")
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13718>
This commit is contained in:
Lionel Landwerlin 2021-10-27 19:02:38 +03:00 committed by Marge Bot
parent 6e7ffa760f
commit 7661237a31

View File

@ -60,6 +60,9 @@ dup_mem_intrinsic(nir_builder *b, nir_intrinsic_instr *intrin,
for (unsigned i = 0; i < info->num_indices; i++)
dup->const_index[i] = intrin->const_index[i];
if (nir_intrinsic_has_access(intrin))
nir_intrinsic_set_access(dup, nir_intrinsic_access(intrin));
nir_intrinsic_set_align(dup, align, 0);
if (info->has_dest) {