Browse Source

shader: Calibrate loop safety threshold

nce_cpp
ReinUsesLisp 5 years ago
committed by ameerj
parent
commit
d633ec4ecc
  1. 2
      src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp

2
src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp

@ -751,7 +751,7 @@ private:
IR::Block* const init_block{block_pool.Create(inst_pool)}; IR::Block* const init_block{block_pool.Create(inst_pool)};
IR::IREmitter ir{*init_block}; IR::IREmitter ir{*init_block};
static constexpr u32 SAFETY_THRESHOLD = 0x2000;
static constexpr u32 SAFETY_THRESHOLD = 0x1000;
ir.SetLoopSafetyVariable(this_loop_id, ir.Imm32(SAFETY_THRESHOLD)); ir.SetLoopSafetyVariable(this_loop_id, ir.Imm32(SAFETY_THRESHOLD));
if (current_block) { if (current_block) {

Loading…
Cancel
Save