mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Optimize preemption programming
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
40ecee5733
commit
21e89b121a
@@ -269,10 +269,12 @@ ze_result_t CommandQueueHw<gfxCoreFamily>::executeCommandLists(
|
||||
NEO::PreemptionHelper::programStateSip<GfxFamily>(child, *neoDevice);
|
||||
}
|
||||
|
||||
NEO::PreemptionHelper::programCmdStream<GfxFamily>(child,
|
||||
cmdQueuePreemption,
|
||||
commandQueuePreemptionMode,
|
||||
csr->getPreemptionAllocation());
|
||||
if (cmdQueuePreemption != commandQueuePreemptionMode) {
|
||||
NEO::PreemptionHelper::programCmdStream<GfxFamily>(child,
|
||||
cmdQueuePreemption,
|
||||
commandQueuePreemptionMode,
|
||||
csr->getPreemptionAllocation());
|
||||
}
|
||||
statePreemption = cmdQueuePreemption;
|
||||
|
||||
const bool sipKernelUsed = devicePreemption == NEO::PreemptionMode::MidThread ||
|
||||
|
||||
Reference in New Issue
Block a user