diff options
| author | 2017-07-27 13:48:27 +0300 | |
|---|---|---|
| committer | 2017-07-27 13:48:27 +0300 | |
| commit | c89f804a01ef4c54de6051c3ce8c70d7e66812b0 (patch) | |
| tree | 0fd3d125eafba456dc02c29523486c00698ca1c3 /src | |
| parent | Merge pull request #2816 from wwylele/proctex-lutlutlut (diff) | |
| download | yuzu-c89f804a01ef4c54de6051c3ce8c70d7e66812b0.tar.gz yuzu-c89f804a01ef4c54de6051c3ce8c70d7e66812b0.tar.xz yuzu-c89f804a01ef4c54de6051c3ce8c70d7e66812b0.zip | |
pica/shader_interpreter: fix off-by-one in LOOP
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 | |||
| 631 | state.address_registers[2] = loop_param.y; | 631 | state.address_registers[2] = loop_param.y; |
| 632 | 632 | ||
| 633 | Record<DebugDataRecord::LOOP_INT_IN>(debug_data, iteration, loop_param); | 633 | Record<DebugDataRecord::LOOP_INT_IN>(debug_data, iteration, loop_param); |
| 634 | call(program_counter + 1, instr.flow_control.dest_offset - program_counter + 1, | 634 | call(program_counter + 1, instr.flow_control.dest_offset - program_counter, |
| 635 | instr.flow_control.dest_offset + 1, loop_param.x, loop_param.z); | 635 | instr.flow_control.dest_offset + 1, loop_param.x, loop_param.z); |
| 636 | break; | 636 | break; |
| 637 | } | 637 | } |