mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 07:10:15 +01:00
nir: Add the alias NIR_MEMORY_ACQ_REL
This will help upcoming C++ code that will have to combine those two semantics. In C++ it is not possible to do this without a cast or adding an operator| to the enum. Since having the short form will also be convient to C, we picked the former solution. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3913>
This commit is contained in:
parent
424737da3e
commit
6ff898a653
1 changed files with 1 additions and 0 deletions
|
|
@ -1448,6 +1448,7 @@ typedef enum {
|
|||
/* Memory ordering. */
|
||||
NIR_MEMORY_ACQUIRE = 1 << 0,
|
||||
NIR_MEMORY_RELEASE = 1 << 1,
|
||||
NIR_MEMORY_ACQ_REL = NIR_MEMORY_ACQUIRE | NIR_MEMORY_RELEASE,
|
||||
|
||||
/* Memory visibility operations. */
|
||||
NIR_MEMORY_MAKE_AVAILABLE = 1 << 3,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue