i965: Emit depth stalls and flushes before changing depth state on Gen6+.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 1 Sep 2011 11:18:20 +0000 (04:18 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 26 Sep 2011 18:54:03 +0000 (11:54 -0700)
commit8bd27a5b080157cb1d5fc0383ce45574c7b16aa5
tree0c8604f19aff77d824aa43ec430c490cc8841cce
parent490e6470a09c3a6049e5e859d72b0b679ef5d070
i965: Emit depth stalls and flushes before changing depth state on Gen6+.

Fixes OpenArena on Gen7.  Technically, adding only the first depth stall
fixes it, but the documentation says to do all three, and the Windows
driver seems to do it.

Not observed to fix anything on Gen6 yet.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38863
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_misc_state.c
src/mesa/drivers/dri/i965/gen7_misc_state.c
src/mesa/drivers/dri/intel/intel_batchbuffer.c