i965: Invalidate state cache before L3 partitioning set-up.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 14 Jan 2016 20:17:01 +0000 (12:17 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 8 Feb 2016 23:47:21 +0000 (15:47 -0800)
commit10d84ba9f084174a1e8e7639dfb05dd855ba86e8
tree665103a85d9723947dec6d41162ca76d3927d252
parent0aa4f99f562a05880a779707cbcd46be459863bf
i965: Invalidate state cache before L3 partitioning set-up.

The state cache is also L3-backed so it seems sensible to make sure
it's clean as we do for other RO caches before repartitioning the L3.
This wasn't part of my original L3 partitioning code because I was
able to reproduce hangs on Gen7 hardware when the state cache
invalidation happened asynchronously with previous 3D rendering, which
should no longer be possible after the previous change.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/gen7_l3_state.c