Move wddm->init from wddmCSR to getDevices

Change-Id: If88f526792596108e038ec05c1d305e9452506f2
This commit is contained in:
Stefanowski, Adam
2018-11-14 16:10:25 +01:00
committed by sys_ocldev
parent 6ea863e440
commit 96d07db545
4 changed files with 68 additions and 97 deletions

View File

@@ -49,6 +49,11 @@ bool DeviceFactory::getDevices(HardwareInfo **pHWInfos, size_t &numDevices, Exec
DeviceFactory::numDevices = numDevices;
DeviceFactory::hwInfos = tempHwInfos.get();
tempHwInfos.release();
executionEnvironment.initGmm(*pHWInfos);
bool success = executionEnvironment.osInterface->get()->getWddm()->init();
DEBUG_BREAK_IF(!success);
return true;
}

View File

@@ -59,9 +59,6 @@ WddmCommandStreamReceiver<GfxFamily>::WddmCommandStreamReceiver(const HardwareIn
if (DebugManager.flags.CsrDispatchMode.get()) {
this->dispatchMode = (DispatchMode)DebugManager.flags.CsrDispatchMode.get();
}
bool success = this->wddm->init();
DEBUG_BREAK_IF(!success);
}
template <typename GfxFamily>