mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 18:58:10 +02:00
zink: apply all storage memory masks to control barriers if no modes are specified
fixes VUID-StandaloneSpirv-OpControlBarrier-04650 errors cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27827>
This commit is contained in:
parent
75785749ef
commit
701ee4be91
1 changed files with 5 additions and 0 deletions
|
|
@ -3208,6 +3208,11 @@ emit_barrier(struct ntv_context *ctx, nir_intrinsic_instr *intr)
|
|||
if (modes & (nir_var_shader_out | nir_var_mem_task_payload))
|
||||
semantics |= SpvMemorySemanticsOutputMemoryMask;
|
||||
|
||||
if (!modes)
|
||||
semantics = SpvMemorySemanticsWorkgroupMemoryMask |
|
||||
SpvMemorySemanticsUniformMemoryMask |
|
||||
SpvMemorySemanticsImageMemoryMask |
|
||||
SpvMemorySemanticsCrossWorkgroupMemoryMask;
|
||||
semantics |= SpvMemorySemanticsAcquireReleaseMask;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue