aom: rtc: Fix for artifacts for screen with active_maps

From c1ac9ef2382a1e222a79c1f62550b6a0c5bb543b Mon Sep 17 00:00:00 2001
From: Marco Paniconi <[EMAIL REDACTED]>
Date: Mon, 19 Aug 2024 11:53:27 -0700
Subject: [PATCH] rtc: Fix for artifacts for screen with active_maps

For active_maps: remove the logic to disable cdef
at frame level based on percent_blocks_inactive, as
this reduces the artifacts reported in issue below.

The cdef can be disabled on block level for rt mode,
and this seems sufficient for speeed/quality gains,
so remove the frame-level disabling.

Bug: 42302583
Change-Id: I23669b208f45dad5ae44556166fd6c25c45a382b
---
 av1/encoder/encoder.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/av1/encoder/encoder.c b/av1/encoder/encoder.c
index 60be4c8a7..cb925116b 100644
--- a/av1/encoder/encoder.c
+++ b/av1/encoder/encoder.c
@@ -2403,10 +2403,7 @@ static void loopfilter_frame(AV1_COMP *cpi, AV1_COMMON *cm) {
 
   const int use_loopfilter =
       is_loopfilter_used(cm) && !cpi->mt_info.pipeline_lpf_mt_with_enc;
-  const int use_cdef =
-      is_cdef_used(cm) && (!cpi->active_map.enabled ||
-                           cpi->rc.percent_blocks_inactive <=
-                               cpi->sf.rt_sf.thresh_active_maps_skip_lf_cdef);
+  const int use_cdef = is_cdef_used(cm);
   const int use_superres = av1_superres_scaled(cm);
   const int use_restoration = is_restoration_used(cm);