Correct index shift
This commit is contained in:
parent
39ce71b407
commit
88e1957f33
1 changed files with 2 additions and 2 deletions
|
@ -68,9 +68,9 @@ namespace Ryujinx.Graphics.Shader.Translation.Optimizations
|
|||
|
||||
Operand source = addOp.GetSource(0);
|
||||
|
||||
Operation shrBy1 = new Operation(Instruction.ShiftRightU32, index, source, Const(1));
|
||||
Operation shrBy3 = new Operation(Instruction.ShiftRightU32, index, source, Const(3));
|
||||
|
||||
block.Operations.AddBefore(node, shrBy1);
|
||||
block.Operations.AddBefore(node, shrBy3);
|
||||
|
||||
texOp.SetSource(0, index);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue