anv: Replay mode is only available on Gfx < 20

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38416>
This commit is contained in:
Sagar Ghuge 2025-11-12 18:49:58 -08:00 committed by Marge Bot
parent 29cc9c5eab
commit aeaf1cbc2b

View file

@ -513,9 +513,10 @@ init_render_queue_state(struct anv_queue *queue, bool is_companion_rcs_batch)
* corruption.
*/
anv_batch_write_reg(batch, GENX(CS_CHICKEN1), cc1) {
#if GFX_VERx10 < 200
cc1.ReplayMode = MidcmdbufferPreemption;
cc1.ReplayModeMask = true;
#endif
#if GFX_VERx10 == 120
cc1.DisablePreemptionandHighPriorityPausingdueto3DPRIMITIVECommand = true;
cc1.DisablePreemptionandHighPriorityPausingdueto3DPRIMITIVECommandMask = true;