mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 07:10:15 +01:00
spirv: Don't specify nir_var_uniform or nir_var_mem_ubo in barriers
These are constant read-only data and don't need to be synchronized. Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21517>
This commit is contained in:
parent
530ae32c5d
commit
863cbb3e02
1 changed files with 2 additions and 6 deletions
|
|
@ -2462,12 +2462,8 @@ vtn_mem_semantics_to_nir_var_modes(struct vtn_builder *b,
|
|||
}
|
||||
|
||||
nir_variable_mode modes = 0;
|
||||
if (semantics & SpvMemorySemanticsUniformMemoryMask) {
|
||||
modes |= nir_var_uniform |
|
||||
nir_var_mem_ubo |
|
||||
nir_var_mem_ssbo |
|
||||
nir_var_mem_global;
|
||||
}
|
||||
if (semantics & SpvMemorySemanticsUniformMemoryMask)
|
||||
modes |= nir_var_mem_ssbo | nir_var_mem_global;
|
||||
if (semantics & SpvMemorySemanticsImageMemoryMask)
|
||||
modes |= nir_var_image;
|
||||
if (semantics & SpvMemorySemanticsWorkgroupMemoryMask)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue