aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/CodeGen
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2021-12-05 09:25:05 -0300
committerGitHub <noreply@github.com>2021-12-05 13:25:05 +0100
commitacc0b0f3138b0ea4d573db5152927026c29bd61d (patch)
tree2573dc9e8bdf548ee873c913c04dc65e901d18b2 /Ryujinx.Graphics.Shader/CodeGen
parent2ab777885b174edb554ef3df7737f112b82e8b5d (diff)
Fix FLO.SH shader instruction with a input of 0 (#2876)
* Fix FLO.SH shader instruction with a input of 0 * Shader cache version bump
Diffstat (limited to 'Ryujinx.Graphics.Shader/CodeGen')
-rw-r--r--Ryujinx.Graphics.Shader/CodeGen/Glsl/Instructions/InstGenHelper.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Shader/CodeGen/Glsl/Instructions/InstGenHelper.cs b/Ryujinx.Graphics.Shader/CodeGen/Glsl/Instructions/InstGenHelper.cs
index a52e70c3..69214a35 100644
--- a/Ryujinx.Graphics.Shader/CodeGen/Glsl/Instructions/InstGenHelper.cs
+++ b/Ryujinx.Graphics.Shader/CodeGen/Glsl/Instructions/InstGenHelper.cs
@@ -71,8 +71,9 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl.Instructions
Add(Instruction.ExponentB2, InstType.CallUnary, "exp2");
Add(Instruction.FSIBegin, InstType.Special);
Add(Instruction.FSIEnd, InstType.Special);
- Add(Instruction.FindFirstSetS32, InstType.CallUnary, "findMSB");
- Add(Instruction.FindFirstSetU32, InstType.CallUnary, "findMSB");
+ Add(Instruction.FindLSB, InstType.CallUnary, "findLSB");
+ Add(Instruction.FindMSBS32, InstType.CallUnary, "findMSB");
+ Add(Instruction.FindMSBU32, InstType.CallUnary, "findMSB");
Add(Instruction.Floor, InstType.CallUnary, "floor");
Add(Instruction.FusedMultiplyAdd, InstType.CallTernary, "fma");
Add(Instruction.GroupMemoryBarrier, InstType.CallNullary, "groupMemoryBarrier");