Revert "[NORMATIVE]Cut off tpl mvs from error resilient frames"

This reverts commit 2bd9d4b56987796d5fa1d6b7af84105a0a6ab7b5.

Reason for revert:

While error resilient frames should not depend on tempmvs, they should also not change decoder state for future tempmvs decoding.

There is still an issue with OrderHint, but it is being fixed by https://aomedia-review.googlesource.com/c/aom/+/50825

BUG=aomedia:1564

Change-Id: I4a30b706650633ab5ac26f225a06d05e40aeae6a
diff --git a/av1/common/entropymode.c b/av1/common/entropymode.c
index 9b747ad..4f69ddb 100644
--- a/av1/common/entropymode.c
+++ b/av1/common/entropymode.c
@@ -1184,13 +1184,6 @@
 #endif  // CONFIG_NO_FRAME_CONTEXT_SIGNALING
 }
 
-static void reset_use_mvs_flags(AV1_COMMON *cm) {
-  for (MV_REFERENCE_FRAME rf = LAST_FRAME; rf <= INTER_REFS_PER_FRAME; ++rf) {
-    int buf_idx = cm->frame_refs[FWD_RF_OFFSET(rf)].idx;
-    if (buf_idx >= 0) cm->buffer_pool->frame_bufs[buf_idx].allow_mvs = 0;
-  }
-}
-
 void av1_setup_past_independence(AV1_COMMON *cm) {
   // Reset the segment feature data to the default stats:
   // Features disabled, 0, with delta coding (Default state).
@@ -1198,8 +1191,6 @@
 
   av1_clearall_segfeatures(&cm->seg);
 
-  reset_use_mvs_flags(cm);
-
 #if CONFIG_SEGMENT_PRED_LAST
   cm->current_frame_seg_map = cm->cur_frame->seg_map;
 #endif
diff --git a/av1/common/mvref_common.c b/av1/common/mvref_common.c
index 6aceee1..ef0b816 100644
--- a/av1/common/mvref_common.c
+++ b/av1/common/mvref_common.c
@@ -1129,8 +1129,6 @@
       cm->buffer_pool->frame_bufs[ref_frame_idx].mi_cols != cm->mi_cols)
     return 0;
 
-  if (cm->buffer_pool->frame_bufs[ref_frame_idx].allow_mvs == 0) return 0;
-
   int ref_frame_index =
       cm->buffer_pool->frame_bufs[ref_frame_idx].cur_frame_offset;
   unsigned int *ref_rf_idx =
diff --git a/av1/common/onyxc_int.h b/av1/common/onyxc_int.h
index c443a22..5124d79 100644
--- a/av1/common/onyxc_int.h
+++ b/av1/common/onyxc_int.h
@@ -134,9 +134,7 @@
   unsigned int cur_frame_offset;
   unsigned int ref_frame_offset[INTER_REFS_PER_FRAME];
 
-  uint8_t allow_mvs;
   MV_REF *mvs;
-
 #if CONFIG_SEGMENT_PRED_LAST
   uint8_t *seg_map;
 #endif
diff --git a/av1/decoder/decodeframe.c b/av1/decoder/decodeframe.c
index addd757..9c429f2 100644
--- a/av1/decoder/decodeframe.c
+++ b/av1/decoder/decodeframe.c
@@ -3403,7 +3403,6 @@
   cm->current_frame_seg_map = cm->cur_frame->seg_map;
 #endif
 
-  cm->cur_frame->allow_mvs = 1;
   av1_setup_motion_field(cm);
 
   av1_setup_block_planes(xd, cm->subsampling_x, cm->subsampling_y, num_planes);
diff --git a/av1/encoder/encodeframe.c b/av1/encoder/encodeframe.c
index 83148cd..6661f8d 100644
--- a/av1/encoder/encodeframe.c
+++ b/av1/encoder/encodeframe.c
@@ -4340,7 +4340,6 @@
   x->txb_split_count = 0;
   av1_zero(x->blk_skip_drl);
 
-  cm->cur_frame->allow_mvs = 1;
   av1_setup_motion_field(cm);
 
   cpi->all_one_sided_refs =