diff options
author | Weiyi Wang <wwylele@gmail.com> | 2017-07-29 11:34:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-29 11:34:28 +0200 |
commit | 60024ad7c27eea4bfc1e006c1e5385e87f905acf (patch) | |
tree | 217752f622b158039764a93405e95c5265672ace /src | |
parent | Merge pull request #2849 from j-selby/master (diff) | |
parent | pica/shader_interpreter: fix off-by-one in LOOP (diff) | |
download | yuzu-60024ad7c27eea4bfc1e006c1e5385e87f905acf.tar yuzu-60024ad7c27eea4bfc1e006c1e5385e87f905acf.tar.gz yuzu-60024ad7c27eea4bfc1e006c1e5385e87f905acf.tar.bz2 yuzu-60024ad7c27eea4bfc1e006c1e5385e87f905acf.tar.lz yuzu-60024ad7c27eea4bfc1e006c1e5385e87f905acf.tar.xz yuzu-60024ad7c27eea4bfc1e006c1e5385e87f905acf.tar.zst yuzu-60024ad7c27eea4bfc1e006c1e5385e87f905acf.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/shader/shader_interpreter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader/shader_interpreter.cpp b/src/video_core/shader/shader_interpreter.cpp index aa1cec81f..206c0978a 100644 --- a/src/video_core/shader/shader_interpreter.cpp +++ b/src/video_core/shader/shader_interpreter.cpp @@ -631,7 +631,7 @@ static void RunInterpreter(const ShaderSetup& setup, UnitState& state, DebugData state.address_registers[2] = loop_param.y; Record<DebugDataRecord::LOOP_INT_IN>(debug_data, iteration, loop_param); - call(program_counter + 1, instr.flow_control.dest_offset - program_counter + 1, + call(program_counter + 1, instr.flow_control.dest_offset - program_counter, instr.flow_control.dest_offset + 1, loop_param.x, loop_param.z); break; } |