intrabc: control reference areas

Change-Id: I853a0e4b5fc7e7b5c1745b401214ef71b65aad60
diff --git a/av1/encoder/rdopt.c b/av1/encoder/rdopt.c
index 779d417..682f568 100644
--- a/av1/encoder/rdopt.c
+++ b/av1/encoder/rdopt.c
@@ -8856,7 +8856,8 @@
     mvp_full = x->best_mv.as_mv;
     MV dv = {.row = mvp_full.row * 8, .col = mvp_full.col * 8 };
     if (mv_check_bounds(&x->mv_limits, &dv)) continue;
-    if (!is_dv_valid(dv, tile, mi_row, mi_col, bsize)) continue;
+    if (!av1_is_dv_valid(dv, tile, mi_row, mi_col, bsize, cm->mib_size_log2))
+      continue;
 
     // DV should not have sub-pel.
     assert((dv.col & 7) == 0);