summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-06-19 21:30:27 -0300
committerGravatar ameerj2021-07-22 21:51:38 -0400
commit1d182fc0f5f8a6facf6e4aebcf79d6d9a092a48c (patch)
treeeeeccdec66442335d0aec00a1457aad45c9e0e51 /src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp
parentbuffer_cache: Fix debugging leftover (diff)
downloadyuzu-1d182fc0f5f8a6facf6e4aebcf79d6d9a092a48c.tar.gz
yuzu-1d182fc0f5f8a6facf6e4aebcf79d6d9a092a48c.tar.xz
yuzu-1d182fc0f5f8a6facf6e4aebcf79d6d9a092a48c.zip
shader: Calibrate loop safety threshold
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp')
-rw-r--r--src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp b/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp
index 605ec38e1..0fb870a69 100644
--- a/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp
+++ b/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp
@@ -751,7 +751,7 @@ private:
751 IR::Block* const init_block{block_pool.Create(inst_pool)}; 751 IR::Block* const init_block{block_pool.Create(inst_pool)};
752 IR::IREmitter ir{*init_block}; 752 IR::IREmitter ir{*init_block};
753 753
754 static constexpr u32 SAFETY_THRESHOLD = 0x2000; 754 static constexpr u32 SAFETY_THRESHOLD = 0x1000;
755 ir.SetLoopSafetyVariable(this_loop_id, ir.Imm32(SAFETY_THRESHOLD)); 755 ir.SetLoopSafetyVariable(this_loop_id, ir.Imm32(SAFETY_THRESHOLD));
756 756
757 if (current_block) { 757 if (current_block) {