mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 11:20:11 +01:00
spirv: make OpLoad/OpStore visibility/availablity barriers acquire/release
I think these are needed to order the visibility/availability operation with the access. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6090>
This commit is contained in:
parent
5b92392c48
commit
b85c38a86f
1 changed files with 2 additions and 0 deletions
|
|
@ -2620,6 +2620,7 @@ vtn_handle_variables(struct vtn_builder *b, SpvOp opcode,
|
|||
if (access & SpvMemoryAccessMakePointerVisibleMask) {
|
||||
SpvMemorySemanticsMask semantics =
|
||||
SpvMemorySemanticsMakeVisibleMask |
|
||||
SpvMemorySemanticsAcquireMask |
|
||||
vtn_mode_to_memory_semantics(src->mode);
|
||||
vtn_emit_memory_barrier(b, scope, semantics);
|
||||
}
|
||||
|
|
@ -2669,6 +2670,7 @@ vtn_handle_variables(struct vtn_builder *b, SpvOp opcode,
|
|||
if (access & SpvMemoryAccessMakePointerAvailableMask) {
|
||||
SpvMemorySemanticsMask semantics =
|
||||
SpvMemorySemanticsMakeAvailableMask |
|
||||
SpvMemorySemanticsReleaseMask |
|
||||
vtn_mode_to_memory_semantics(dest->mode);
|
||||
vtn_emit_memory_barrier(b, scope, semantics);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue