mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 17:20:26 +08:00
Move wddm->init from wddmCSR to getDevices
Change-Id: If88f526792596108e038ec05c1d305e9452506f2
This commit is contained in:
committed by
sys_ocldev
parent
6ea863e440
commit
96d07db545
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user