summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-07-17 20:25:08 +0200
committerGitHub <noreply@github.com>2019-07-17 20:25:08 +0200
commit223a535f3fd560485b3671e8d8b14e1f3389ec3d (patch)
treeaa889eff1c94a9e2b00df76c67594fe26df43bdc
parentMerge pull request #2726 from lioncash/access (diff)
parentshader/decode/other: Correct branch indirect argument within BRA handling (diff)
downloadyuzu-223a535f3fd560485b3671e8d8b14e1f3389ec3d.tar
yuzu-223a535f3fd560485b3671e8d8b14e1f3389ec3d.tar.gz
yuzu-223a535f3fd560485b3671e8d8b14e1f3389ec3d.tar.bz2
yuzu-223a535f3fd560485b3671e8d8b14e1f3389ec3d.tar.lz
yuzu-223a535f3fd560485b3671e8d8b14e1f3389ec3d.tar.xz
yuzu-223a535f3fd560485b3671e8d8b14e1f3389ec3d.tar.zst
yuzu-223a535f3fd560485b3671e8d8b14e1f3389ec3d.zip
-rw-r--r--src/video_core/shader/decode/other.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader/decode/other.cpp b/src/video_core/shader/decode/other.cpp
index 42e3de02f..c0f64d7a0 100644
--- a/src/video_core/shader/decode/other.cpp
+++ b/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;