imm_atomic_consume needs to prefix decrement

This commit is contained in:
baldurk
2015-07-30 19:37:26 +02:00
parent 2ee14c1ad9
commit 286dcb65fe
+1 -1
View File
@@ -1858,7 +1858,7 @@ State State::GetNext(GlobalState &global, State quad[4]) const
case OPCODE_IMM_ATOMIC_CONSUME:
{
uint32_t count = global.uavs[srcOpers[0].value.u.x].hiddenCounter--;
uint32_t count = --global.uavs[srcOpers[0].value.u.x].hiddenCounter;
s.SetDst(op.operands[0], op, ShaderVariable("", count, count, count, count));
break;
}