i965/hsw: Implement end of batch workaround
authorBen Widawsky <benjamin.widawsky@intel.com>
Thu, 9 Jul 2015 17:35:19 +0000 (10:35 -0700)
committerBen Widawsky <benjamin.widawsky@intel.com>
Thu, 9 Jul 2015 18:11:06 +0000 (11:11 -0700)
commit0166b4c165271bd7525a91049e58e390cb596c60
tree88fce6beeae764373e2596aa19691bf4e3bb0057
parent2cfa64e159a68998b76bdbcd20f8c7810379fce0
i965/hsw: Implement end of batch workaround

This patch can cause an infinite recursion if the previous patch titled, "i965:
Track finished batch state" isn't present (backporters take notice).

v2: Sent out the wrong patch originally. This patches switches the order of
flushes, doing the generic flush before the CC_STATE, and the required
workaround flush afterwards

v3: Only perform workaround for render ring
Add text to the BATCH_RESERVE comments

v4 (By Ken): Rebase; update citation to mention PRM and Wa name; combine two
blocks.

http://otc-mesa-ci.jf.intel.com/job/bwidawsk/171/

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/intel_batchbuffer.c
src/mesa/drivers/dri/i965/intel_batchbuffer.h