Workaround for selecting engine

Change-Id: I12deaebb68966a33827e8578a0d907749568ba8e
Signed-off-by: Sebastian Luzynski <sebastian.jozef.luzynski@intel.com>
This commit is contained in:
Sebastian Luzynski
2020-08-04 16:30:20 +02:00
committed by sys_ocldev
parent 4128761479
commit bc0fbb34da
3 changed files with 10 additions and 0 deletions

View File

@@ -98,6 +98,8 @@ void RootDevice::initializeRootCommandStreamReceiver() {
auto &hwInfo = getHardwareInfo();
auto defaultEngineType = getChosenEngineType(hwInfo);
auto &hwHelper = NEO::HwHelper::get(hwInfo.platform.eRenderCoreFamily);
defaultEngineType = static_cast<aub_stream::EngineType>(hwHelper.getDefaultEngineWithWa(hwInfo, defaultEngineType));
auto preemptionMode = PreemptionHelper::getDefaultPreemptionMode(hwInfo);
auto osContext = getMemoryManager()->createAndRegisterOsContext(rootCommandStreamReceiver.get(), defaultEngineType,