i965: Rework the extra flushes surrounding occlusion queries.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 8 Aug 2012 16:41:19 +0000 (09:41 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 9 Aug 2012 00:15:21 +0000 (17:15 -0700)
commit5deb1d1a1f9e3354597569032af9bdf27d629cca
treedfd4e90cfcdcf9a780c4324b59db2897d4d7ce9f
parentb0adbda75a092a92211bb519a395494532ddb17e
i965: Rework the extra flushes surrounding occlusion queries.

This removes the CS stall on Ivybridge.

On Sandybridge, the depth stall needs to be preceded by a non-zero
post-sync op, which requires a CS stall, which needs a stall at
scoreboard.  Emit the full workaround.

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Eric Anholt <eric@anholt.net>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_queryobj.c