mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 12:34:37 +00:00
bzz
This commit is contained in:
parent
3793333caa
commit
3656adf88c
@ -326,4 +326,13 @@ void Translator::DS_CONSUME(const GcnInst& inst) {
|
|||||||
SetDst(inst.dst[0], prev);
|
SetDst(inst.dst[0], prev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Translator::DS_ORDERED_COUNT(const GcnInst& inst) {
|
||||||
|
const IR::U32 addr{GetSrc(inst.src[0])};
|
||||||
|
const IR::U32 offset =
|
||||||
|
ir.Imm32((u32(inst.control.ds.offset1) << 8u) + u32(inst.control.ds.offset0));
|
||||||
|
const IR::U32 addr_offset = ir.IAdd(addr, offset);
|
||||||
|
const IR::Value original_val = ir.SharedAtomicIIncrement(addr_offset);
|
||||||
|
SetDst(inst.dst[0], IR::U32{original_val});
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace Shader::Gcn
|
} // namespace Shader::Gcn
|
||||||
|
Loading…
Reference in New Issue
Block a user