2020-07-21 13:25:14 +02:00
|
|
|
/*
|
2022-05-17 19:04:23 +00:00
|
|
|
* Copyright (C) 2020-2022 Intel Corporation
|
2020-07-21 13:25:14 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "shared/source/device/device.h"
|
|
|
|
|
#include "shared/source/helpers/hw_info.h"
|
|
|
|
|
|
2022-05-17 19:04:23 +00:00
|
|
|
#include <string>
|
|
|
|
|
|
2020-07-21 13:25:14 +02:00
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
|
|
const std::string Device::getDeviceName(const HardwareInfo &hwInfo) const {
|
2020-11-09 17:35:33 +00:00
|
|
|
return std::string(hwInfo.capabilityTable.deviceName).empty() ? "Intel(R) Graphics" : hwInfo.capabilityTable.deviceName;
|
2020-07-21 13:25:14 +02:00
|
|
|
}
|
|
|
|
|
} // namespace NEO
|