2019-09-18 19:32:33 +02:00
|
|
|
/*
|
2021-03-09 18:02:59 +00:00
|
|
|
* Copyright (C) 2019-2021 Intel Corporation
|
2019-09-18 19:32:33 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2020-02-23 22:44:01 +01:00
|
|
|
#include "shared/source/helpers/hw_info.h"
|
|
|
|
|
#include "shared/source/os_interface/hw_info_config.h"
|
|
|
|
|
#include "shared/source/os_interface/hw_info_config.inl"
|
|
|
|
|
#include "shared/source/os_interface/hw_info_config_bdw_plus.inl"
|
2019-09-18 19:32:33 +02:00
|
|
|
|
|
|
|
|
namespace NEO {
|
2020-11-21 15:50:18 +00:00
|
|
|
namespace Gen12LPCommonFunctions {
|
|
|
|
|
inline void adjustPlatformForProductFamily(PLATFORM &platform, GFXCORE_FAMILY newCoreFamily) {
|
|
|
|
|
platform.eRenderCoreFamily = IGFX_GEN12LP_CORE;
|
|
|
|
|
platform.eDisplayCoreFamily = IGFX_GEN12LP_CORE;
|
|
|
|
|
}
|
2019-09-18 19:32:33 +02:00
|
|
|
|
2020-11-21 15:50:18 +00:00
|
|
|
} // namespace Gen12LPCommonFunctions
|
2019-09-18 19:32:33 +02:00
|
|
|
|
2020-11-21 15:50:18 +00:00
|
|
|
#ifdef SUPPORT_TGLLP
|
2019-09-18 19:32:33 +02:00
|
|
|
|
2020-11-20 10:45:15 +01:00
|
|
|
template <>
|
|
|
|
|
void HwInfoConfigHw<IGFX_TIGERLAKE_LP>::adjustPlatformForProductFamily(HardwareInfo *hwInfo) {
|
2020-11-21 15:50:18 +00:00
|
|
|
Gen12LPCommonFunctions::adjustPlatformForProductFamily(hwInfo->platform, GFXCORE_FAMILY::IGFX_GEN12LP_CORE);
|
2020-11-20 10:45:15 +01:00
|
|
|
}
|
|
|
|
|
|
2019-09-18 19:32:33 +02:00
|
|
|
template class HwInfoConfigHw<IGFX_TIGERLAKE_LP>;
|
|
|
|
|
#endif
|
2020-06-16 14:18:59 +02:00
|
|
|
#ifdef SUPPORT_DG1
|
|
|
|
|
|
2020-11-20 10:45:15 +01:00
|
|
|
template <>
|
|
|
|
|
void HwInfoConfigHw<IGFX_DG1>::adjustPlatformForProductFamily(HardwareInfo *hwInfo) {
|
2020-11-21 15:50:18 +00:00
|
|
|
Gen12LPCommonFunctions::adjustPlatformForProductFamily(hwInfo->platform, GFXCORE_FAMILY::IGFX_GEN12LP_CORE);
|
2020-11-20 10:45:15 +01:00
|
|
|
}
|
|
|
|
|
|
2020-06-16 14:18:59 +02:00
|
|
|
template class HwInfoConfigHw<IGFX_DG1>;
|
|
|
|
|
#endif
|
2020-08-20 20:50:19 +02:00
|
|
|
#ifdef SUPPORT_RKL
|
|
|
|
|
|
2020-11-20 10:45:15 +01:00
|
|
|
template <>
|
|
|
|
|
void HwInfoConfigHw<IGFX_ROCKETLAKE>::adjustPlatformForProductFamily(HardwareInfo *hwInfo) {
|
2020-11-21 15:50:18 +00:00
|
|
|
Gen12LPCommonFunctions::adjustPlatformForProductFamily(hwInfo->platform, GFXCORE_FAMILY::IGFX_GEN12LP_CORE);
|
2020-11-20 10:45:15 +01:00
|
|
|
}
|
|
|
|
|
|
2020-08-20 20:50:19 +02:00
|
|
|
template class HwInfoConfigHw<IGFX_ROCKETLAKE>;
|
|
|
|
|
#endif
|
2020-10-08 15:40:40 +02:00
|
|
|
#ifdef SUPPORT_ADLS
|
|
|
|
|
|
2020-11-20 10:45:15 +01:00
|
|
|
template <>
|
|
|
|
|
void HwInfoConfigHw<IGFX_ALDERLAKE_S>::adjustPlatformForProductFamily(HardwareInfo *hwInfo) {
|
2020-11-21 15:50:18 +00:00
|
|
|
Gen12LPCommonFunctions::adjustPlatformForProductFamily(hwInfo->platform, GFXCORE_FAMILY::IGFX_GEN12LP_CORE);
|
2020-11-20 10:45:15 +01:00
|
|
|
}
|
|
|
|
|
|
2020-10-08 15:40:40 +02:00
|
|
|
template class HwInfoConfigHw<IGFX_ALDERLAKE_S>;
|
|
|
|
|
#endif
|
2019-09-18 19:32:33 +02:00
|
|
|
} // namespace NEO
|