AV1 RT: Reduce interpolation filter search for LAST_FRAME only

Change-Id: Ib16cbbcf97daf171938c5239451db4e7f00d940f
diff --git a/av1/encoder/nonrd_pickmode.c b/av1/encoder/nonrd_pickmode.c
index a937e23..53bae4a 100644
--- a/av1/encoder/nonrd_pickmode.c
+++ b/av1/encoder/nonrd_pickmode.c
@@ -1601,7 +1601,9 @@
 #if COLLECT_PICK_MODE_STAT
     ms_stat.num_nonskipped_searches[bsize][this_mode]++;
 #endif
-    if (cpi->sf.use_nonrd_filter_search) {
+    if (cpi->sf.use_nonrd_filter_search &&
+        ((mi->mv[0].as_mv.row & 0x07) || (mi->mv[0].as_mv.col & 0x07)) &&
+        ref_frame == LAST_FRAME) {
       search_filter_ref(cpi, x, &this_rdc, mi_row, mi_col, bsize, &var_y,
                         &sse_y, &this_early_term, use_model_yrd_large);
     } else {