i965/gen6: Issue direct depth stall and flush after depth clear
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Tue, 17 Jan 2017 09:48:49 +0000 (11:48 +0200)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Wed, 18 Jan 2017 20:42:47 +0000 (22:42 +0200)
commit46b346899d98e29943f8cd74c25bcb8d2f868a49
treeea8fdfaffda42de15622960c5a40353ed08541be
parente6da6943fed1228c551af1f0e1a405b6d67b41ae
i965/gen6: Issue direct depth stall and flush after depth clear

instead of calling unconditionally brw_emit_mi_flush() which
does:

   brw_emit_pipe_control_flush(brw,
                                PIPE_CONTROL_DEPTH_CACHE_FLUSH |
                                PIPE_CONTROL_RENDER_TARGET_FLUSH |
                                PIPE_CONTROL_CS_STALL);

   brw_emit_pipe_control_flush(brw,
                                PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE |
                                PIPE_CONTROL_CONST_CACHE_INVALIDATE);

Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_clear.c