mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
performance: Stop direct submission before removing host ptrs
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
34cfba4a2a
commit
4fd219cdbb
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user