mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
Pass RootDeviceEnvironment to Drm
Related-To: NEO-4207 Change-Id: Ic59abf9221702333efea69213391b9646ae0864e Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
780925aab4
commit
adc3a97503
@@ -31,7 +31,7 @@ bool DeviceFactory::getDevices(size_t &numDevices, ExecutionEnvironment &executi
|
||||
executionEnvironment.prepareRootDeviceEnvironments(static_cast<uint32_t>(numRootDevices));
|
||||
|
||||
for (auto rootDeviceIndex = 0u; rootDeviceIndex < numRootDevices; rootDeviceIndex++) {
|
||||
Drm *drm = Drm::create(devNum);
|
||||
Drm *drm = Drm::create(devNum, *executionEnvironment.rootDeviceEnvironments[rootDeviceIndex]);
|
||||
if (!drm) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user