From 3cec1484552aff22eb4e4300758138be7228187c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tapani=20P=C3=A4lli?= Date: Tue, 14 Jan 2020 10:02:05 +0200 Subject: [PATCH] iris: set depth stall enabled when depth flush enabled on gen12 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This implements HW workaround #1409600907 for iris driver. Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Reviewed-by: Kenneth Graunke Part-of: --- src/gallium/drivers/iris/iris_state.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 7ead920cadf..b1340e1e3da 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -7161,6 +7161,15 @@ iris_emit_raw_pipe_control(struct iris_batch *batch, flags |= PIPE_CONTROL_STALL_AT_SCOREBOARD; } + if (GEN_GEN >= 12 && (flags & PIPE_CONTROL_DEPTH_CACHE_FLUSH)) { + /* GEN:BUG:1409600907: + * + * "PIPE_CONTROL with Depth Stall Enable bit must be set + * with any PIPE_CONTROL with Depth Flush Enable bit set. + */ + flags |= PIPE_CONTROL_DEPTH_STALL; + } + /* Emit --------------------------------------------------------------- */ if (INTEL_DEBUG & DEBUG_PIPE_CONTROL) { -- 2.30.2