Enable row-mt for deltaq-mode and delta-lf-mode

When row-mt=1, deltaq-mode=1 and/or delta-lf-mode=1,
for the first superblock of every row:

1) xd->current_qindex is reset to base_qindex.
2) loop_filter_delta parameters are reset to default.

This change would avoid the compliance issues arising
due to delta_q_res and delta_lf_res when the above modes
are enabled in encoder.

Change-Id: I982786add8814a0cceccb405ff18c33f5f043cf6
diff --git a/av1/encoder/encodeframe.c b/av1/encoder/encodeframe.c
index a6fefb4..aaa1463 100644
--- a/av1/encoder/encodeframe.c
+++ b/av1/encoder/encodeframe.c
@@ -3930,7 +3930,7 @@
   av1_zero_left_context(xd);
 
   // Reset delta for every tile
-  if (mi_row == tile_info->mi_row_start) {
+  if (mi_row == tile_info->mi_row_start || cpi->row_mt) {
     if (cm->delta_q_info.delta_q_present_flag)
       xd->current_qindex = cm->base_qindex;
     if (cm->delta_q_info.delta_lf_present_flag) {
@@ -4937,8 +4937,7 @@
     cpi->row_mt_sync_write_ptr = av1_row_mt_sync_write_dummy;
     cpi->row_mt = 0;
 
-    if (cpi->oxcf.row_mt && (cpi->oxcf.max_threads > 1) &&
-        !cm->delta_q_info.delta_q_present_flag) {
+    if (cpi->oxcf.row_mt && (cpi->oxcf.max_threads > 1)) {
       cpi->row_mt = 1;
       cpi->row_mt_sync_read_ptr = av1_row_mt_sync_read;
       cpi->row_mt_sync_write_ptr = av1_row_mt_sync_write;