projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
848d5e4
)
gallivm: fix atomic compare-and-swap
author
Dave Airlie
<airlied@redhat.com>
Tue, 20 Aug 2019 05:44:50 +0000
(15:44 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 27 Aug 2019 02:28:17 +0000
(12:28 +1000)
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>
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index 31f6f082acc3d5bd0b13f0785f39cc34a8d2824b..7c747f38e7ab741e14820074179742a1296a2d27 100644
(file)
--- 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;