aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/Shader/ShaderDecodeFlow.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-05-29 20:37:10 -0300
committergdkchan <gab.dark.100@gmail.com>2018-05-29 20:37:10 -0300
commitf43dd080641b3c2508e35bc7651fb0adcb282a2e (patch)
tree9a4fb60454e558817a0eee9fd3bfe594e438d45f /Ryujinx.Graphics/Gal/Shader/ShaderDecodeFlow.cs
parent9670c096e410add36314a247b77334c0c1d61256 (diff)
Added support for more shader instructions and texture formats, fix swapped channels in RGB565 and RGBA5551? texture formats, allow zero values on blending registers, initial work to build CFG on the shader decoder, update the BRA instruction to work with it (WIP)
Diffstat (limited to 'Ryujinx.Graphics/Gal/Shader/ShaderDecodeFlow.cs')
-rw-r--r--Ryujinx.Graphics/Gal/Shader/ShaderDecodeFlow.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Ryujinx.Graphics/Gal/Shader/ShaderDecodeFlow.cs b/Ryujinx.Graphics/Gal/Shader/ShaderDecodeFlow.cs
index 6f48d1a8..89949d62 100644
--- a/Ryujinx.Graphics/Gal/Shader/ShaderDecodeFlow.cs
+++ b/Ryujinx.Graphics/Gal/Shader/ShaderDecodeFlow.cs
@@ -15,11 +15,11 @@ namespace Ryujinx.Graphics.Gal.Shader
throw new NotImplementedException();
}
- long Target = ((int)(OpCode >> 20) << 8) >> 8;
+ int Target = ((int)(OpCode >> 20) << 8) >> 8;
- Target += Block.Position + 8;
+ ShaderIrOperImm Imm = new ShaderIrOperImm(Target);
- Block.AddNode(GetPredNode(new ShaderIrOp(ShaderIrInst.Bra, Block.GetLabel(Target)), OpCode));
+ Block.AddNode(GetPredNode(new ShaderIrOp(ShaderIrInst.Bra, Imm), OpCode));
}
public static void Exit(ShaderIrBlock Block, long OpCode)