performance: add one time context init sip state to immediate flush task

Related-To: NEO-7808

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2023-07-05 18:21:23 +00:00
committed by Compute-Runtime-Automation
parent ba6ccdf5bd
commit 8836838c7c
4 changed files with 73 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
*/
#pragma once
#include "shared/source/command_stream/preemption_mode.h"
#include "shared/source/device/device_info.h"
#include "shared/source/helpers/engine_control.h"
#include "shared/source/helpers/engine_node_helper.h"
@@ -166,6 +167,9 @@ class Device : public ReferenceTrackedObject<Device> {
uint32_t getNumberOfRegularContextsPerEngine() const { return numberOfRegularContextsPerEngine; }
bool isMultiRegularContextSelectionAllowed(aub_stream::EngineType engineType, EngineUsage engineUsage) const;
MOCKABLE_VIRTUAL void stopDirectSubmission();
bool isStateSipRequired() const {
return getPreemptionMode() == PreemptionMode::MidThread || getDebugger() != nullptr;
}
std::atomic<uint32_t> debugExecutionCounter = 0;