瀏覽代碼

Merge pull request #2740 from lioncash/bra

shader/decode/other: Correct branch indirect argument within BRA handling
Fernando Sahmkow 7 年之前
父節點
當前提交
223a535f3f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/video_core/shader/decode/other.cpp

+ 1 - 1
src/video_core/shader/decode/other.cpp

@@ -102,7 +102,7 @@ u32 ShaderIR::DecodeOther(NodeBlock& bb, u32 pc) {
                                                  PRECISE, op_a, Immediate(3));
             const Node operand =
                 Operation(OperationCode::IAdd, PRECISE, convert, Immediate(target));
-            branch = Operation(OperationCode::BranchIndirect, convert);
+            branch = Operation(OperationCode::BranchIndirect, operand);
         }
 
         const Tegra::Shader::ConditionCode cc = instr.flow_condition_code;