aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/Instructions/InstEmitMove.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2021-04-02 07:50:35 -0300
committerGitHub <noreply@github.com>2021-04-02 21:50:35 +1100
commit524fe3bea4ddcb2587ebde06c803645a0bfcd5c2 (patch)
tree21962e7b7e82fad191fe90fe589ece3aabffda36 /Ryujinx.Graphics.Shader/Instructions/InstEmitMove.cs
parentf2cdceb8461f032b77fa3516264cd9b3b1e7d627 (diff)
Implement shader HelperThreadNV (#2163)
* Implement shader HelperThreadNV * Bump shader cache version * Use gl_HelperInvocation since its supported across all vendors * Nit
Diffstat (limited to 'Ryujinx.Graphics.Shader/Instructions/InstEmitMove.cs')
-rw-r--r--Ryujinx.Graphics.Shader/Instructions/InstEmitMove.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Shader/Instructions/InstEmitMove.cs b/Ryujinx.Graphics.Shader/Instructions/InstEmitMove.cs
index 085325ee..98a713fb 100644
--- a/Ryujinx.Graphics.Shader/Instructions/InstEmitMove.cs
+++ b/Ryujinx.Graphics.Shader/Instructions/InstEmitMove.cs
@@ -63,6 +63,11 @@ namespace Ryujinx.Graphics.Shader.Instructions
// TODO: Use value from Y direction GPU register.
case SystemRegister.YDirection: src = ConstF(1); break;
+ case SystemRegister.ThreadKill: src = context.Config.Stage == ShaderStage.Fragment
+ ? Attribute(AttributeConsts.ThreadKill)
+ : Const(0);
+ break;
+
case SystemRegister.ThreadId:
{
Operand tidX = Attribute(AttributeConsts.ThreadIdX);