iris: No need to emit PIPELINE_SELECT on Xe2+

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 <sagar.ghuge@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26637>
This commit is contained in:
Sagar Ghuge 2023-10-06 21:10:34 -07:00 committed by Marge Bot
parent 208875516c
commit a22297d2b1

View file

@ -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