aom: rtc: Reset x->nonrd_prune_ref_frame_search to frame value

From 779af95bba1ecb9fc3efc731351c53d62090c25f Mon Sep 17 00:00:00 2001
From: Marco Paniconi <[EMAIL REDACTED]>
Date: Tue, 11 Jun 2024 14:17:20 -0700
Subject: [PATCH] rtc: Reset x->nonrd_prune_ref_frame_search to frame value

The superblock value of nonrd_prune_ref_frame_search
should be reset to the frame level value
(sf->rt_sf.nonrd_prune_ref_frame_search). This fixed
a non-bitexactness for multi-threading at speed 11,
observed in a manual run with this patch (not merged in):
https://aomedia-review.googlesource.com/c/aom/+/190884

Change-Id: I692477c7d6fef82e92a3b6cff478560f62521728
---
 av1/encoder/encodeframe.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/av1/encoder/encodeframe.c b/av1/encoder/encodeframe.c
index 4c178b18c..46e92f8ed 100644
--- a/av1/encoder/encodeframe.c
+++ b/av1/encoder/encodeframe.c
@@ -1212,6 +1212,8 @@ static AOM_INLINE void encode_sb_row(AV1_COMP *cpi, ThreadData *td,
     x->sb_me_mv.as_int = 0;
     x->sb_force_fixed_part = 1;
     x->color_palette_thresh = 64;
+    x->nonrd_prune_ref_frame_search =
+        cpi->sf.rt_sf.nonrd_prune_ref_frame_search;
 
     if (cpi->oxcf.mode == ALLINTRA) {
       x->intra_sb_rdmult_modifier = 128;