ac: add ac_atomic_inc_wrap / ac_atomic_dec_wrap support
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
a9ec718652
commit
704a6b5948
2 changed files with 4 additions and 0 deletions
|
|
@ -2580,6 +2580,8 @@ static const char *get_atomic_name(enum ac_atomic_op op)
|
|||
case ac_atomic_and: return "and";
|
||||
case ac_atomic_or: return "or";
|
||||
case ac_atomic_xor: return "xor";
|
||||
case ac_atomic_inc_wrap: return "inc";
|
||||
case ac_atomic_dec_wrap: return "dec";
|
||||
}
|
||||
unreachable("bad atomic op");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -516,6 +516,8 @@ enum ac_atomic_op {
|
|||
ac_atomic_and,
|
||||
ac_atomic_or,
|
||||
ac_atomic_xor,
|
||||
ac_atomic_inc_wrap,
|
||||
ac_atomic_dec_wrap,
|
||||
};
|
||||
|
||||
enum ac_image_dim {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue