mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-01 03:07:17 +01:00
Transform shader LDC into constant buffer access if offset is constant (#3672)
* Transform shader LDC into constant buffer access if offset is constant * Shader cache version bump
This commit is contained in:
parent
df99257d7f
commit
408bd63b08
@ -22,7 +22,7 @@ namespace Ryujinx.Graphics.Gpu.Shader.DiskCache
|
|||||||
private const ushort FileFormatVersionMajor = 1;
|
private const ushort FileFormatVersionMajor = 1;
|
||||||
private const ushort FileFormatVersionMinor = 2;
|
private const ushort FileFormatVersionMinor = 2;
|
||||||
private const uint FileFormatVersionPacked = ((uint)FileFormatVersionMajor << 16) | FileFormatVersionMinor;
|
private const uint FileFormatVersionPacked = ((uint)FileFormatVersionMajor << 16) | FileFormatVersionMinor;
|
||||||
private const uint CodeGenVersion = 3525;
|
private const uint CodeGenVersion = 3672;
|
||||||
|
|
||||||
private const string SharedTocFileName = "shared.toc";
|
private const string SharedTocFileName = "shared.toc";
|
||||||
private const string SharedDataFileName = "shared.data";
|
private const string SharedDataFileName = "shared.data";
|
||||||
|
@ -153,6 +153,10 @@ namespace Ryujinx.Graphics.Shader.Translation.Optimizations
|
|||||||
EvaluateFPUnary(operation, (x) => float.IsNaN(x));
|
EvaluateFPUnary(operation, (x) => float.IsNaN(x));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Instruction.LoadConstant:
|
||||||
|
operation.TurnIntoCopy(Cbuf(operation.GetSource(0).Value, operation.GetSource(1).Value));
|
||||||
|
break;
|
||||||
|
|
||||||
case Instruction.Maximum:
|
case Instruction.Maximum:
|
||||||
EvaluateBinary(operation, (x, y) => Math.Max(x, y));
|
EvaluateBinary(operation, (x, y) => Math.Max(x, y));
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user