2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2020-02-22 09:28:27 +01:00
|
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
2019-03-26 11:59:46 +01:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2020-03-27 13:28:54 +01:00
|
|
|
#include "shared/source/os_interface/linux/driver_info_linux.h"
|
|
|
|
|
|
|
|
|
|
#include "shared/source/helpers/hw_info.h"
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2020-03-27 13:28:54 +01:00
|
|
|
DriverInfo *DriverInfo::create(const HardwareInfo *hwInfo, OSInterface *osInterface) {
|
|
|
|
|
if (hwInfo) {
|
|
|
|
|
auto imageSupport = hwInfo->capabilityTable.supportsImages;
|
|
|
|
|
return new DriverInfoLinux(imageSupport);
|
|
|
|
|
}
|
|
|
|
|
return nullptr;
|
2017-12-21 00:45:38 +01:00
|
|
|
};
|
2020-03-27 13:28:54 +01:00
|
|
|
|
|
|
|
|
DriverInfoLinux::DriverInfoLinux(bool imageSupport) : imageSupport(imageSupport) {}
|
|
|
|
|
|
|
|
|
|
bool DriverInfoLinux::getImageSupport() { return imageSupport; }
|
|
|
|
|
|
2020-03-05 18:13:32 +01:00
|
|
|
} // namespace NEO
|