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:
Kacper Nowak
2023-12-04 23:40:40 +00:00
committed by Compute-Runtime-Automation
parent 4697eb8e8c
commit 18fb432552
17 changed files with 271 additions and 86 deletions

View File

@@ -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);