Limit preemption programming in level zero command queues

When multiple command queues use the same context and retain the same state
No preemption programming for copy command queues
Program preemption preamble only for mid thread preemption

Related-To: NEO-7187

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2022-07-27 15:35:15 +00:00
committed by Compute-Runtime-Automation
parent 17f22990e6
commit 0c301e5e99
11 changed files with 368 additions and 94 deletions

View File

@@ -348,6 +348,14 @@ class CommandStreamReceiver {
isPreambleSent = value;
}
PreemptionMode getPreemptionMode() const {
return lastPreemptionMode;
}
void setPreemptionMode(PreemptionMode value) {
lastPreemptionMode = value;
}
protected:
void cleanupResources();
void printDeviceIndex();