performance: Stop direct submission before removing host ptrs

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2024-05-07 11:59:43 +00:00
committed by Compute-Runtime-Automation
parent 34cfba4a2a
commit 4fd219cdbb
9 changed files with 133 additions and 2 deletions

View File

@@ -457,6 +457,14 @@ class UltCommandStreamReceiver : public CommandStreamReceiverHw<GfxFamily>, publ
return *flushReturnValue;
}
void stopDirectSubmissionForHostptrDestroy() override {
stopDirectSubmissionForHostptrDestroyCalled = true;
}
void startDirectSubmissionForHostptrDestroy() override {
startDirectSubmissionForHostptrDestroyCalled = true;
}
void stopDirectSubmission(bool blocking) override {
stopDirectSubmissionCalled = true;
stopDirectSubmissionCalledBlocking = blocking;
@@ -541,6 +549,8 @@ class UltCommandStreamReceiver : public CommandStreamReceiverHw<GfxFamily>, publ
bool isKmdWaitOnTaskCountAllowedValue = false;
bool stopDirectSubmissionCalled = false;
bool stopDirectSubmissionCalledBlocking = false;
std::atomic_bool stopDirectSubmissionForHostptrDestroyCalled = false;
std::atomic_bool startDirectSubmissionForHostptrDestroyCalled = false;
};
} // namespace NEO