mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
refactor: Stop using hard-coded BCS engine as default one
Do not rely on presence of BCS0 engine. Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4697eb8e8c
commit
18fb432552
@@ -651,7 +651,8 @@ EngineControl *Device::getInternalCopyEngine() {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
auto expectedEngine = aub_stream::ENGINE_BCS;
|
||||
const auto &productHelper = this->getProductHelper();
|
||||
auto expectedEngine = productHelper.getDefaultCopyEngine();
|
||||
|
||||
if (debugManager.flags.ForceBCSForInternalCopyEngine.get() != -1) {
|
||||
expectedEngine = EngineHelpers::mapBcsIndexToEngineType(debugManager.flags.ForceBCSForInternalCopyEngine.get(), true);
|
||||
|
||||
Reference in New Issue
Block a user