mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-21 13:29:26 +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);
|
const uint32_t typeId = getVectorTypeId(value.type);
|
||||||
|
|
||||||
switch (ins.op) {
|
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:
|
case DxbcOpcode::ImmAtomicExch:
|
||||||
value.id = m_module.opAtomicExchange(typeId,
|
value.id = m_module.opAtomicExchange(typeId,
|
||||||
pointer.id, scopeId, semanticsId,
|
pointer.id, scopeId, semanticsId,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user