From 06bf0800a8a626ea831e3f16a227250c440e8010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sun, 6 Sep 2026 01:30:37 +0300 Subject: [PATCH] perf(av1): gate the three reference-through-a-LocalKey counter bumps too --- crates/ec-av1/src/decode.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index 993b0e4f..4347bae2 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -11067,7 +11067,7 @@ fn decode_block_rect4( } else { &RECT4_SPLIT_DEPTH2_HITS }; - which.with(|c| c.set(c.get() + 1)); + hit_do! { which.with(|c| c.set(c.get() + 1)); } let modes = RectStripModes { skip, mode, @@ -12079,7 +12079,7 @@ fn decode_block_rect64( } else { &RECT4_SPLIT_DEPTH2_HITS }; - which.with(|c| c.set(c.get() + 1)); + hit_do! { which.with(|c| c.set(c.get() + 1)); } } if crate::envflags::env_flag!("EC_SBPART_DUMP64") { eprintln!( @@ -23235,7 +23235,7 @@ fn read_single_ref( ALTREF_FRAME => &ALTREF_HITS, _ => unreachable!("read_single_ref only ever returns LAST_FRAME..=ALTREF_FRAME"), }; - c.with(|v| v.set(v.get() + 1)); + hit_do! { c.with(|v| v.set(v.get() + 1)); } } ref_frame }