i965: Apply post-sync non-zero workaround to homebrew workaround.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 21 Oct 2011 08:03:37 +0000 (01:03 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 24 Oct 2011 20:32:33 +0000 (13:32 -0700)
commit3cc0a7be23ab603ed40d602595f673a44e079885
tree780a6701ab86a088a83715cd0ede09e51ff17cc9
parent56ac7ccae67bf1cea1617c846579387cca4bc81d
i965: Apply post-sync non-zero workaround to homebrew workaround.

In commit 3e5d3626, Eric added a homebrew workaround to fix GPU hangs in
the Mesa "engine" demo and oglc's api-texcoord test.

Unfortunately, his PIPE_CONTROL contains a Depth Stall, which
necessitates the post-sync non-zero workaround,

Fixes GPU hangs in Civilization 4, PlaneShift, and 3DMMES.
Hopefully Heroes of Newerth as well, though I haven't tested that.

NOTE: This is candidate for the 7.11 branch.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=40324
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41096
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-and-tested-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/gen6_vs_state.c