mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 10:17:01 +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
@@ -255,6 +255,7 @@ CommandQueue *CommandQueue::create(uint32_t productFamily, Device *device, NEO::
|
||||
auto &osContext = csr->getOsContext();
|
||||
DriverHandleImp *driverHandleImp = static_cast<DriverHandleImp *>(device->getDriverHandle());
|
||||
if (driverHandleImp->powerHint && driverHandleImp->powerHint != osContext.getUmdPowerHintValue()) {
|
||||
csr->unregisterDirectSubmissionFromController();
|
||||
auto lock = csr->obtainUniqueOwnership();
|
||||
csr->resetDirectSubmission();
|
||||
osContext.setUmdPowerHintValue(driverHandleImp->powerHint);
|
||||
|
||||
Reference in New Issue
Block a user