mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
fix: proper lock order when reinitialize context
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
140f787b11
commit
01885fe362
@@ -380,6 +380,7 @@ class CommandStreamReceiver : NEO::NonCopyableAndNonMovableClass {
|
||||
}
|
||||
|
||||
virtual void stopDirectSubmission(bool blocking, bool needsLock) {}
|
||||
virtual void unregisterDirectSubmissionFromController(){};
|
||||
virtual void resetDirectSubmission(){};
|
||||
|
||||
virtual QueueThrottle getLastDirectSubmissionThrottle() = 0;
|
||||
|
||||
@@ -246,7 +246,7 @@ class CommandStreamReceiverHw : public CommandStreamReceiver {
|
||||
bool checkPlatformSupportsNewResourceImplicitFlush() const;
|
||||
bool checkPlatformSupportsGpuIdleImplicitFlush() const;
|
||||
void configurePostSyncWriteOffset();
|
||||
void unregisterDirectSubmissionFromController();
|
||||
void unregisterDirectSubmissionFromController() override;
|
||||
void handleFrontEndStateTransition(const DispatchFlags &dispatchFlags);
|
||||
void handlePipelineSelectStateTransition(const DispatchFlags &dispatchFlags);
|
||||
void handleStateBaseAddressStateTransition(const DispatchFlags &dispatchFlags, bool &isStateBaseAddressDirty);
|
||||
|
||||
@@ -1432,7 +1432,6 @@ inline void CommandStreamReceiverHw<GfxFamily>::stopDirectSubmission(bool blocki
|
||||
|
||||
template <typename GfxFamily>
|
||||
inline void CommandStreamReceiverHw<GfxFamily>::resetDirectSubmission() {
|
||||
this->unregisterDirectSubmissionFromController();
|
||||
this->blitterDirectSubmission.reset();
|
||||
this->directSubmission.reset();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user