anv: Use thread group preemption granularity

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36337>
This commit is contained in:
Sagar Ghuge 2025-07-23 13:13:07 -07:00 committed by Marge Bot
parent 9ae09d521c
commit 3a9157a10b

View file

@ -371,6 +371,12 @@ init_common_queue_state(struct anv_queue *queue, struct anv_batch *batch)
}
#endif
/* Always use Thread Group Preemption granularity level for Media/GPGPU */
anv_batch_write_reg(batch, GENX(CS_CHICKEN1), cc1) {
cc1.MediaAndGPGPUPreemptionControl = ThreadGroupPreemption;
cc1.MediaAndGPGPUPreemptionControlMask = 0x3;
}
state_system_mem_fence_address_emit(device, batch);
}