diff options
Diffstat (limited to 'Ryujinx.Graphics.Shader')
| -rw-r--r-- | Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs | 6 | ||||
| -rw-r--r-- | Ryujinx.Graphics.Shader/Translation/Rewriter.cs | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs b/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs index 69d3ffb3..b59f0d31 100644 --- a/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs +++ b/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs @@ -889,7 +889,7 @@ namespace Ryujinx.Graphics.Shader.Instructions type, flags, handle, - compIndex, + compIndex ^ 1, // The instruction component order is the inverse of GLSL's. tempDest, sources); @@ -897,9 +897,9 @@ namespace Ryujinx.Graphics.Shader.Instructions tempDest = context.FPMultiply(tempDest, ConstF(256.0f)); - Operand finalValue = context.FPConvertToS32(tempDest); + Operand fixedPointValue = context.FPConvertToS32(tempDest); - context.Copy(dest, finalValue); + context.Copy(dest, fixedPointValue); } } } diff --git a/Ryujinx.Graphics.Shader/Translation/Rewriter.cs b/Ryujinx.Graphics.Shader/Translation/Rewriter.cs index 912d61f1..84aa7c10 100644 --- a/Ryujinx.Graphics.Shader/Translation/Rewriter.cs +++ b/Ryujinx.Graphics.Shader/Translation/Rewriter.cs @@ -155,7 +155,7 @@ namespace Ryujinx.Graphics.Shader.Translation { return node; } - + bool isGather = (texOp.Flags & TextureFlags.Gather) != 0; bool hasDerivatives = (texOp.Flags & TextureFlags.Derivatives) != 0; bool intCoords = (texOp.Flags & TextureFlags.IntCoords) != 0; @@ -360,7 +360,7 @@ namespace Ryujinx.Graphics.Shader.Translation texOp.Format, texOp.Flags, texOp.Handle, - 1, + 0, lod, lodSources)); |
