From 704a6b594877fee52aea5ddd3dbdb7356f74f759 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Wed, 24 Jul 2019 12:09:31 +0200 Subject: [PATCH] ac: add ac_atomic_inc_wrap / ac_atomic_dec_wrap support MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák --- src/amd/common/ac_llvm_build.c | 2 ++ src/amd/common/ac_llvm_build.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c index 0943d0364dd..24970769b87 100644 --- a/src/amd/common/ac_llvm_build.c +++ b/src/amd/common/ac_llvm_build.c @@ -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"); } diff --git a/src/amd/common/ac_llvm_build.h b/src/amd/common/ac_llvm_build.h index e460d14e177..082201fb048 100644 --- a/src/amd/common/ac_llvm_build.h +++ b/src/amd/common/ac_llvm_build.h @@ -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 { -- 2.30.2