Release main copy engine from device and sub device

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2022-09-20 13:04:31 +00:00
committed by Compute-Runtime-Automation
parent 4332563433
commit e00a5e0a1e
2 changed files with 33 additions and 1 deletions

View File

@@ -355,7 +355,9 @@ CommandStreamReceiver &CommandQueue::selectCsrForHostPtrAllocation(bool split, C
void CommandQueue::releaseMainCopyEngine() {
if (auto mainBcs = bcsEngines[0]; mainBcs != nullptr) {
auto &selectorCopyEngine = device->getNearestGenericSubDevice(0)->getSelectorCopyEngine();
auto &selectorCopyEngineSubDevice = device->getNearestGenericSubDevice(0)->getSelectorCopyEngine();
EngineHelpers::releaseBcsEngineType(mainBcs->getEngineType(), selectorCopyEngineSubDevice);
auto &selectorCopyEngine = device->getSelectorCopyEngine();
EngineHelpers::releaseBcsEngineType(mainBcs->getEngineType(), selectorCopyEngine);
}
}