From 1eda49cc3de22e97a70944367d17d5afe611f3cc Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 20 Aug 2019 15:44:50 +1000 Subject: [PATCH] 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 --- src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.30.2