mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
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:
parent
9ae09d521c
commit
3a9157a10b
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue