spirv2dxil: Mark SSBO reads for bindless as CAN_REORDER

This makes it so that they can be CSE'd, which helps prevent redundant
reads of the same data.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22786>
This commit is contained in:
Jesse Natalie
2023-05-01 13:07:01 -07:00
committed by Marge Bot
parent 34cc37910f
commit bb65d36c5c
@@ -57,7 +57,8 @@ load_vulkan_ssbo(nir_builder *b, unsigned buf_idx,
nir_channel(b, descriptor, 0),
offset,
.align_mul = num_comps * 4,
.align_offset = 0);
.align_offset = 0,
.access = ACCESS_NON_WRITEABLE | ACCESS_CAN_REORDER);
}
static nir_ssa_def *