aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/shader/decode/arithmetic_immediate.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-01-30 01:56:33 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-02-03 17:21:20 -0300
commit6a6fabea58bb12e70feded1354570f259c9f9a6d (patch)
tree33118d3d594805f5ccc26466009317afd928a557 /src/video_core/shader/decode/arithmetic_immediate.cpp
parenteceab45dac2b67392a896fa322af15e6aa81c242 (diff)
shader_ir: Pass decoded nodes as a whole instead of per basic blocks
Some games call LDG at the top of a basic block, making the tracking heuristic to fail. This commit lets the heuristic the decoded nodes as a whole instead of per basic blocks. This may lead to some false positives but allows it the heuristic to track cases it previously couldn't.
Diffstat (limited to 'src/video_core/shader/decode/arithmetic_immediate.cpp')
-rw-r--r--src/video_core/shader/decode/arithmetic_immediate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader/decode/arithmetic_immediate.cpp b/src/video_core/shader/decode/arithmetic_immediate.cpp
index 4fd3db54e..1c6da94b4 100644
--- a/src/video_core/shader/decode/arithmetic_immediate.cpp
+++ b/src/video_core/shader/decode/arithmetic_immediate.cpp
@@ -12,7 +12,7 @@ namespace VideoCommon::Shader {
using Tegra::Shader::Instruction;
using Tegra::Shader::OpCode;
-u32 ShaderIR::DecodeArithmeticImmediate(BasicBlock& bb, const BasicBlock& code, u32 pc) {
+u32 ShaderIR::DecodeArithmeticImmediate(BasicBlock& bb, u32 pc) {
const Instruction instr = {program_code[pc]};
const auto opcode = OpCode::Decode(instr);