Check type
This commit is contained in:
parent
617c0963d5
commit
aacf293681
1 changed files with 8 additions and 1 deletions
|
@ -281,7 +281,14 @@ namespace Ryujinx.Graphics.Shader.Instructions
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case AtomOp.Exch:
|
case AtomOp.Exch:
|
||||||
res = context.AtomicSwap(storageKind, e0, e1, value);
|
if (type == AtomSize.S32 || type == AtomSize.U32)
|
||||||
|
{
|
||||||
|
res = context.AtomicSwap(storageKind, e0, e1, value);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
context.TranslatorContext.GpuAccessor.Log($"Invalid reduction type: {type}.");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
context.TranslatorContext.GpuAccessor.Log($"Invalid atomic operation: {op}.");
|
context.TranslatorContext.GpuAccessor.Log($"Invalid atomic operation: {op}.");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue