Browse Source

decode/other: Implement S2R.LaneId

This maps to host's thread id.

- Fixes graphical issues on Paper Mario.
nce_cpp
ReinUsesLisp 6 years ago
parent
commit
c5391180e6
  1. 3
      src/video_core/shader/decode/other.cpp

3
src/video_core/shader/decode/other.cpp

@ -75,8 +75,7 @@ u32 ShaderIR::DecodeOther(NodeBlock& bb, u32 pc) {
const Node value = [this, instr] { const Node value = [this, instr] {
switch (instr.sys20) { switch (instr.sys20) {
case SystemVariable::LaneId: case SystemVariable::LaneId:
LOG_WARNING(HW_GPU, "S2R instruction with LaneId is incomplete");
return Immediate(0U);
return Operation(OperationCode::ThreadId);
case SystemVariable::InvocationId: case SystemVariable::InvocationId:
return Operation(OperationCode::InvocationId); return Operation(OperationCode::InvocationId);
case SystemVariable::Ydirection: case SystemVariable::Ydirection:

Loading…
Cancel
Save