1
0
Fork 0
forked from suyu/suyu

Merge pull request #2848 from wwylele/shader-loop-fix

pica/shader_interpreter: fix off-by-one in LOOP
This commit is contained in:
Weiyi Wang 2017-07-29 12:34:28 +03:00 committed by GitHub
commit 60024ad7c2

View file

@ -631,7 +631,7 @@ static void RunInterpreter(const ShaderSetup& setup, UnitState& state, DebugData
state.address_registers[2] = loop_param.y; state.address_registers[2] = loop_param.y;
Record<DebugDataRecord::LOOP_INT_IN>(debug_data, iteration, loop_param); 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); instr.flow_control.dest_offset + 1, loop_param.x, loop_param.z);
break; break;
} }