From 6165fda59b889de035b38d9a1a08ffe0da19e6a6 Mon Sep 17 00:00:00 2001 From: Anuj Phogat Date: Fri, 10 Nov 2017 14:39:17 -0800 Subject: [PATCH] i965: Program DWord Length in MI_FLUSH_DW Signed-off-by: Anuj Phogat Cc: --- src/mesa/drivers/dri/i965/brw_pipe_control.c | 2 +- src/mesa/drivers/dri/i965/intel_blit.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_pipe_control.c b/src/mesa/drivers/dri/i965/brw_pipe_control.c index bae4ba7c003..35f326a5c55 100644 --- a/src/mesa/drivers/dri/i965/brw_pipe_control.c +++ b/src/mesa/drivers/dri/i965/brw_pipe_control.c @@ -462,7 +462,7 @@ brw_emit_mi_flush(struct brw_context *brw) if (brw->batch.ring == BLT_RING && devinfo->gen >= 6) { BEGIN_BATCH_BLT(4); - OUT_BATCH(MI_FLUSH_DW); + OUT_BATCH(MI_FLUSH_DW | (4 - 2)); OUT_BATCH(0); OUT_BATCH(0); OUT_BATCH(0); diff --git a/src/mesa/drivers/dri/i965/intel_blit.c b/src/mesa/drivers/dri/i965/intel_blit.c index 13431a7bd2a..3d7bc92d137 100644 --- a/src/mesa/drivers/dri/i965/intel_blit.c +++ b/src/mesa/drivers/dri/i965/intel_blit.c @@ -104,7 +104,7 @@ set_blitter_tiling(struct brw_context *brw, assert(brw->screen->devinfo.gen >= 6); /* Idle the blitter before we update how tiling is interpreted. */ - OUT_BATCH(MI_FLUSH_DW); + OUT_BATCH(MI_FLUSH_DW | (4 - 2)); OUT_BATCH(0); OUT_BATCH(0); OUT_BATCH(0); -- 2.30.2