Commit 129a2ed2cb for aom

commit 129a2ed2cbb3a4ecbad067b52d78df1cef93fc74
Author: Satheesh Kumar <satheesh.kumar@ittiam.com>
Date:   Thu May 21 16:24:36 2026 +0530

    Fix assert failure due to skip_model_rd_uv sf for monochrome

    For monochrome contents, `skip_hor` or `skip_ver` flags should remain as
    INTERP_EVAL_LUMA_EVAL_CHROMA or INTERP_SKIP_LUMA_EVAL_CHROMA
    (i.e., <= interp_search_flags->default_interp_skip_flags).

    However, when `skip_model_rd_uv` was enabled, these flags were being
    set to INTERP_EVAL_LUMA_SKIP_CHROMA, leading to an assertion failure in
    `interpolation_filter_rd()`.

    This patch fixes this issue.

    Change-Id: I57554172a1b47b1d76c82f1b932814c2c100ca7f

diff --git a/av1/encoder/interp_search.c b/av1/encoder/interp_search.c
index 3ecd4a497e..54da49b060 100644
--- a/av1/encoder/interp_search.c
+++ b/av1/encoder/interp_search.c
@@ -628,7 +628,7 @@ static inline void calc_interp_skip_pred_flag(MACROBLOCK *const x,

   // Configure flags to skip chroma RD evaluation when skip_model_rd_uv is
   // enabled
-  if (cpi->sf.interp_sf.skip_model_rd_uv) {
+  if (cpi->sf.interp_sf.skip_model_rd_uv && num_planes > 1) {
     *skip_hor |= INTERP_EVAL_LUMA_SKIP_CHROMA;
     *skip_ver |= INTERP_EVAL_LUMA_SKIP_CHROMA;
   }