summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/decode
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-08-29 18:58:43 +0200
committerGitHub <noreply@github.com>2019-08-29 18:58:43 +0200
commitf8cc5668f80d0c63f5ce850286760807462e1d72 (patch)
tree8856d97bfb22f9cc9c726e7020de051a9deef178 /src/video_core/shader/decode
parentMerge pull request #2786 from ReinUsesLisp/vote (diff)
parentshader/decode: Implement S2R Tic (diff)
downloadyuzu-f8cc5668f80d0c63f5ce850286760807462e1d72.tar
yuzu-f8cc5668f80d0c63f5ce850286760807462e1d72.tar.gz
yuzu-f8cc5668f80d0c63f5ce850286760807462e1d72.tar.bz2
yuzu-f8cc5668f80d0c63f5ce850286760807462e1d72.tar.lz
yuzu-f8cc5668f80d0c63f5ce850286760807462e1d72.tar.xz
yuzu-f8cc5668f80d0c63f5ce850286760807462e1d72.tar.zst
yuzu-f8cc5668f80d0c63f5ce850286760807462e1d72.zip
Diffstat (limited to 'src/video_core/shader/decode')
-rw-r--r--src/video_core/shader/decode/other.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/shader/decode/other.cpp b/src/video_core/shader/decode/other.cpp
index ac0e764d6..d46e0f823 100644
--- a/src/video_core/shader/decode/other.cpp
+++ b/src/video_core/shader/decode/other.cpp
@@ -74,6 +74,13 @@ u32 ShaderIR::DecodeOther(NodeBlock& bb, u32 pc) {
case SystemVariable::InvocationInfo:
LOG_WARNING(HW_GPU, "MOV_SYS instruction with InvocationInfo is incomplete");
return Immediate(0u);
+ case SystemVariable::Tid: {
+ Node value = Immediate(0);
+ value = BitfieldInsert(value, Operation(OperationCode::LocalInvocationIdX), 0, 9);
+ value = BitfieldInsert(value, Operation(OperationCode::LocalInvocationIdY), 16, 9);
+ value = BitfieldInsert(value, Operation(OperationCode::LocalInvocationIdZ), 26, 5);
+ return value;
+ }
case SystemVariable::TidX:
return Operation(OperationCode::LocalInvocationIdX);
case SystemVariable::TidY: