1
0
forked from MeloNX/MeloNX

Fix PSL and MRG flags on XMAD cbuf-reg shader instruction (#1520)

This commit is contained in:
gdkchan 2020-09-01 15:07:20 -03:00 committed by GitHub
parent 72af965dc6
commit 357bb2455e

View File

@ -674,7 +674,12 @@ namespace Ryujinx.Graphics.Shader.Instructions
bool productShiftLeft = false;
bool merge = false;
if (!(op is OpCodeAluRegCbuf))
if (op is OpCodeAluCbuf)
{
productShiftLeft = context.CurrOp.RawOpCode.Extract(55);
merge = context.CurrOp.RawOpCode.Extract(56);
}
else if (!(op is OpCodeAluRegCbuf))
{
productShiftLeft = context.CurrOp.RawOpCode.Extract(36);
merge = context.CurrOp.RawOpCode.Extract(37);