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:
Pierre-Eric Pelloux-Prayer
2019-07-24 12:09:31 +02:00
committed by Marek Olšák
parent a9ec718652
commit 704a6b5948
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -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");
}
+2
View File
@@ -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 {