mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 08:37:12 +08:00
Do not pass device ordinal in drm creation
Change-Id: I8376a8eace1109772c516d7a3daadfa709495171 Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
48a87cb675
commit
cccb95bc4e
@@ -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(rootDeviceIndex);
|
||||
Drm *drm = Drm::create(devNum);
|
||||
if (!drm) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user