Optimize preemption programming
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
parent
40ecee5733
commit
21e89b121a
|
@ -269,10 +269,12 @@ ze_result_t CommandQueueHw<gfxCoreFamily>::executeCommandLists(
|
||||||
NEO::PreemptionHelper::programStateSip<GfxFamily>(child, *neoDevice);
|
NEO::PreemptionHelper::programStateSip<GfxFamily>(child, *neoDevice);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cmdQueuePreemption != commandQueuePreemptionMode) {
|
||||||
NEO::PreemptionHelper::programCmdStream<GfxFamily>(child,
|
NEO::PreemptionHelper::programCmdStream<GfxFamily>(child,
|
||||||
cmdQueuePreemption,
|
cmdQueuePreemption,
|
||||||
commandQueuePreemptionMode,
|
commandQueuePreemptionMode,
|
||||||
csr->getPreemptionAllocation());
|
csr->getPreemptionAllocation());
|
||||||
|
}
|
||||||
statePreemption = cmdQueuePreemption;
|
statePreemption = cmdQueuePreemption;
|
||||||
|
|
||||||
const bool sipKernelUsed = devicePreemption == NEO::PreemptionMode::MidThread ||
|
const bool sipKernelUsed = devicePreemption == NEO::PreemptionMode::MidThread ||
|
||||||
|
|
Loading…
Reference in New Issue