From a22297d2b1ab860b3cc196ac9ce4bc8b3defbf2c Mon Sep 17 00:00:00 2001 From: Sagar Ghuge Date: Fri, 6 Oct 2023 21:10:34 -0700 Subject: [PATCH] iris: No need to emit PIPELINE_SELECT on Xe2+ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Xe2+, PIPELINE_SELECT is getting deprecated (Bspec 55860), as a result we don't have to do the stalling flushes while switching between different pipelines. Signed-off-by: Sagar Ghuge Reviewed-by: José Roberto de Souza Part-of: --- src/gallium/drivers/iris/iris_state.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index ad8c9cae292..6806c369deb 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -666,6 +666,9 @@ iris_rewrite_compute_walker_pc(struct iris_batch *batch, static void emit_pipeline_select(struct iris_batch *batch, uint32_t pipeline) { + /* Bspec 55860: Xe2+ no longer requires PIPELINE_SELECT */ +#if GFX_VER < 20 + #if GFX_VER >= 8 && GFX_VER < 10 /* From the Broadwell PRM, Volume 2a: Instructions, PIPELINE_SELECT: * @@ -751,6 +754,7 @@ emit_pipeline_select(struct iris_batch *batch, uint32_t pipeline) #endif /* if GFX_VER >= 9 */ sel.PipelineSelection = pipeline; } +#endif /* if GFX_VER < 20 */ } UNUSED static void