mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[dxbc] Implemented ImmAtomicCmpExch and AtomicCmpStore
This commit is contained in:
parent
e06300d592
commit
492c7384bc
@ -2026,6 +2026,14 @@ namespace dxvk {
|
||||
const uint32_t typeId = getVectorTypeId(value.type);
|
||||
|
||||
switch (ins.op) {
|
||||
case DxbcOpcode::AtomicCmpStore:
|
||||
case DxbcOpcode::ImmAtomicCmpExch:
|
||||
value.id = m_module.opAtomicCompareExchange(
|
||||
typeId, pointer.id, scopeId, semanticsId,
|
||||
m_module.constu32(spv::MemorySemanticsMaskNone),
|
||||
src[1].id, src[0].id);
|
||||
break;
|
||||
|
||||
case DxbcOpcode::ImmAtomicExch:
|
||||
value.id = m_module.opAtomicExchange(typeId,
|
||||
pointer.id, scopeId, semanticsId,
|
||||
|
Loading…
x
Reference in New Issue
Block a user