[*] monster hunter rise evidences for flicker/slowdown paths

This commit is contained in:
xbzk
2026-08-30 10:24:21 -03:00
parent 3df41c1e7a
commit c3bdfd14c5
2 changed files with 105 additions and 1 deletions
@@ -168,7 +168,7 @@ void Traverse(EmitContext& ctx, IR::Program& program) {
if (!Settings::values.disable_shader_loop_safety_checks) {
const Id pointer_type{ctx.TypePointer(spv::StorageClass::Private, ctx.U32[1])};
const Id safety_counter{ctx.AddGlobalVariable(
pointer_type, spv::StorageClass::Private, ctx.Const(0x2000u))};
pointer_type, spv::StorageClass::Private, ctx.Const(0x100u))};
if (ctx.profile.supported_spirv >= 0x00010400) {
ctx.interfaces.push_back(safety_counter);
}