summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2020-07-16 16:08:39 -0300
committerGravatar ReinUsesLisp2020-07-16 16:09:39 -0300
commit210cc0204d63c65f314c0f5de21f172dc006083f (patch)
tree41f2d3259826486c3553ed4190a51eeb6f1a39ec
parentMerge pull request #4342 from lioncash/endian (diff)
downloadyuzu-210cc0204d63c65f314c0f5de21f172dc006083f.tar.gz
yuzu-210cc0204d63c65f314c0f5de21f172dc006083f.tar.xz
yuzu-210cc0204d63c65f314c0f5de21f172dc006083f.zip
decode/other: Implement S2R.LaneId
This maps to host's thread id. - Fixes graphical issues on Paper Mario.
-rw-r--r--src/video_core/shader/decode/other.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/shader/decode/other.cpp b/src/video_core/shader/decode/other.cpp
index c0a8f233f..29a7cfbfe 100644
--- a/src/video_core/shader/decode/other.cpp
+++ b/src/video_core/shader/decode/other.cpp
@@ -75,8 +75,7 @@ u32 ShaderIR::DecodeOther(NodeBlock& bb, u32 pc) {
75 const Node value = [this, instr] { 75 const Node value = [this, instr] {
76 switch (instr.sys20) { 76 switch (instr.sys20) {
77 case SystemVariable::LaneId: 77 case SystemVariable::LaneId:
78 LOG_WARNING(HW_GPU, "S2R instruction with LaneId is incomplete"); 78 return Operation(OperationCode::ThreadId);
79 return Immediate(0U);
80 case SystemVariable::InvocationId: 79 case SystemVariable::InvocationId:
81 return Operation(OperationCode::InvocationId); 80 return Operation(OperationCode::InvocationId);
82 case SystemVariable::Ydirection: 81 case SystemVariable::Ydirection: