i965/gen4-5: Emit MI_FLUSH as required prior to switching pipelines.
authorFrancisco Jerez <currojerez@riseup.net>
Sun, 3 Jan 2016 03:05:48 +0000 (19:05 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 15 Jan 2016 03:26:23 +0000 (19:26 -0800)
commit635be1402c485b154ab1bf23e5448827364e70a5
treed75c585c59afcd1604d65fd3c8fcb9bb338c8f4a
parent18c76551ee425b981efefc61f663a7781df17882
i965/gen4-5: Emit MI_FLUSH as required prior to switching pipelines.

AFAIK brw_emit_select_pipeline() is only called once during context
init on Gen4-5, at which point the pipeline is likely to be already
idle so it may just happen to work by luck regardless of the MI_FLUSH.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_misc_state.c