mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-30 02:51:24 +00:00
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:
parent
6e7ffa760f
commit
7661237a31
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user