summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2019-08-20 15:44:50 +1000
committerDylan Baker <dylan@pnwbakers.com>2019-09-04 11:55:35 -0700
commit9433241cc9b407dbd8e5f2ed6b4b60835b3ac297 (patch)
tree67d1767a573822d0c1494a29af1fc27818007a38 /src
parent6e07e58ef64b7487f56e6950d13559083e70415a (diff)
downloadmesa-9433241cc9b407dbd8e5f2ed6b4b60835b3ac297.tar.gz
gallivm: fix atomic compare-and-swap
Not sure how I missed this before, but compswap was hitting an assert here as it is it's own special case. Fixes: b5ac381d8f ("gallivm: add buffer operations to the tgsi->llvm conversion.") Reviewed-by: Roland Scheidegger <sroland@vmware.com> (cherry picked from commit 1eda49cc3de22e97a70944367d17d5afe611f3cc)
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index 31f6f082acc..7c747f38e7a 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
@@ -3585,6 +3585,8 @@ atomic_emit(
case TGSI_OPCODE_ATOMIMAX:
op = LLVMAtomicRMWBinOpMax;
break;
+ case TGSI_OPCODE_ATOMCAS:
+ break;
default:
assert(0);
return;