mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 05:10:17 +01:00
i965/gen8+: Skip depth stalls on state change
Docs suggest this is no longer required starting with Gen8. Perf (no regressions in n=20) OglMultithread 0.67% OglTerrainPanInst 0.12% trex 0.45% warsow 0.64% Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
6d2ceb10cd
commit
e8a219ab46
1 changed files with 8 additions and 0 deletions
|
|
@ -193,6 +193,14 @@ brw_emit_depth_stall_flushes(struct brw_context *brw)
|
|||
{
|
||||
assert(brw->gen >= 6 && brw->gen <= 9);
|
||||
|
||||
/* Starting on BDW, these pipe controls are unnecessary.
|
||||
*
|
||||
* WM HW will internally manage the draining pipe and flushing of the caches
|
||||
* when this command is issued. The PIPE_CONTROL restrictions are removed.
|
||||
*/
|
||||
if (brw->gen >= 8)
|
||||
return;
|
||||
|
||||
brw_emit_pipe_control_flush(brw, PIPE_CONTROL_DEPTH_STALL);
|
||||
brw_emit_pipe_control_flush(brw, PIPE_CONTROL_DEPTH_CACHE_FLUSH);
|
||||
brw_emit_pipe_control_flush(brw, PIPE_CONTROL_DEPTH_STALL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue