mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
vtn: Handle atomic counter semantics
This can happen for GLSL-environment SPIR-V. Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Suggested-by: Caio Oliveira <caio.oliveira@intel.com> Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23191>
This commit is contained in:
parent
98fde58b3a
commit
09b5e2a786
1 changed files with 7 additions and 0 deletions
|
|
@ -2569,6 +2569,13 @@ vtn_mem_semantics_to_nir_var_modes(struct vtn_builder *b,
|
|||
modes |= nir_var_mem_task_payload;
|
||||
}
|
||||
|
||||
if (semantics & SpvMemorySemanticsAtomicCounterMemoryMask) {
|
||||
/* There's no nir_var_atomic_counter, but since atomic counters are
|
||||
* lowered to SSBOs, we use nir_var_mem_ssbo instead.
|
||||
*/
|
||||
modes |= nir_var_mem_ssbo;
|
||||
}
|
||||
|
||||
return modes;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue