mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

Related-To: NEO-4744 Change-Id: I8a9a791a634f9c0c444695036d96e3c959c90de0 Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
21 lines
521 B
C++
21 lines
521 B
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/device/device.h"
|
|
#include "shared/source/helpers/hw_info.h"
|
|
|
|
namespace NEO {
|
|
|
|
const std::string Device::getDeviceName(const HardwareInfo &hwInfo) const {
|
|
std::string deviceName = "Intel(R) Graphics";
|
|
if (hwInfo.platform.eProductFamily < PRODUCT_FAMILY::IGFX_DG1) {
|
|
deviceName += std::string(" ") + familyName[hwInfo.platform.eRenderCoreFamily];
|
|
}
|
|
return deviceName;
|
|
}
|
|
} // namespace NEO
|