From 490e03c1eb50b41440b1cbf0baaca4c376ef82c4 Mon Sep 17 00:00:00 2001 From: Ben Widawsky Date: Tue, 27 Oct 2015 14:08:55 -0700 Subject: [PATCH] i965/cs: WaSendDummyVFEafterPipelineSelect compile tested only --- src/mesa/drivers/dri/i965/brw_misc_state.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c index cf6ba5b..ff32166 100644 --- a/src/mesa/drivers/dri/i965/brw_misc_state.c +++ b/src/mesa/drivers/dri/i965/brw_misc_state.c @@ -874,6 +874,20 @@ brw_emit_select_pipeline(struct brw_context *brw, enum brw_pipeline pipeline) (brw->gen >= 9 ? (3 << 8) : 0) | (pipeline == BRW_COMPUTE_PIPELINE ? 2 : 0)); ADVANCE_BATCH(); + + if (pipeline == BRW_COMPUTE_PIPELINE && brw->gen == 8) { + BEGIN_BATCH(9); + OUT_BATCH(MEDIA_VFE_STATE << 16 | (9 - 2)); + OUT_BATCH(0); + OUT_BATCH(0); + OUT_BATCH(1<<8); + OUT_BATCH(0); + OUT_BATCH(0); + OUT_BATCH(0); + OUT_BATCH(0); + OUT_BATCH(0); + ADVANCE_BATCH(); + } } /** -- 2.6.2