Stop using platformDevices to setup hw info on Linux

Related-To: NEO-4207
Change-Id: I6ab136c8cddf9652ba05b3ef4e81fb6ad594831b
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
This commit is contained in:
Jablonski, Mateusz
2020-01-30 15:04:19 +01:00
committed by sys_ocldev
parent 0e3ab96298
commit 8bbb719a97
3 changed files with 21 additions and 4 deletions

View File

@@ -6,6 +6,7 @@
*/
#include "core/debug_settings/debug_settings_manager.h"
#include "core/execution_environment/root_device_environment.h"
#include "core/gmm_helper/gmm_helper.h"
#include "core/helpers/hw_cmds.h"
#include "core/helpers/hw_helper.h"
@@ -13,6 +14,7 @@
#include "core/helpers/options.h"
#include "core/os_interface/linux/drm_neo.h"
#include "core/os_interface/linux/drm_null_device.h"
#include "runtime/execution_environment/execution_environment.h"
#include "drm/i915_drm.h"
@@ -166,7 +168,7 @@ Drm *Drm::create(int32_t deviceOrdinal, RootDeviceEnvironment &rootDeviceEnviron
}
}
if (device) {
platformDevices[0] = device->pHwInfo;
rootDeviceEnvironment.executionEnvironment.setHwInfo(device->pHwInfo);
ret = drmObject->setupHardwareInfo(const_cast<DeviceDescriptor *>(device), true);
if (ret != 0) {
return nullptr;