mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 15:12:56 +08:00
Do not use selector copy engine
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
92893a5101
commit
efac290ba3
@@ -109,9 +109,17 @@ aub_stream::EngineType getBcsEngineType(const HardwareInfo &hwInfo, const Device
|
||||
return aub_stream::ENGINE_BCS3;
|
||||
}
|
||||
|
||||
const bool isMainCopyEngineAlreadyUsed = selectorCopyEngine.isMainUsed.exchange(true);
|
||||
if (isMainCopyEngineAlreadyUsed) {
|
||||
return selectLinkCopyEngine(hwInfo, deviceBitfield, selectorCopyEngine.selector);
|
||||
auto enableSelector = HwInfoConfig::get(hwInfo.platform.eProductFamily)->isCopyEngineSelectorEnabled(hwInfo);
|
||||
|
||||
if (DebugManager.flags.EnableCopyEngineSelector.get() != -1) {
|
||||
enableSelector = DebugManager.flags.EnableCopyEngineSelector.get();
|
||||
}
|
||||
|
||||
if (enableSelector) {
|
||||
const bool isMainCopyEngineAlreadyUsed = selectorCopyEngine.isMainUsed.exchange(true);
|
||||
if (isMainCopyEngineAlreadyUsed) {
|
||||
return selectLinkCopyEngine(hwInfo, deviceBitfield, selectorCopyEngine.selector);
|
||||
}
|
||||
}
|
||||
|
||||
return aub_stream::ENGINE_BCS;
|
||||
|
||||
Reference in New Issue
Block a user