2021-07-28 14:45:43 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2021 Intel Corporation
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "shared/source/gen12lp/helpers_gen12lp.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_and_later.inl"
|
|
|
|
|
|
|
|
|
|
namespace NEO {
|
2021-08-19 11:06:49 +00:00
|
|
|
constexpr static auto gfxProduct = IGFX_ALDERLAKE_P;
|
|
|
|
|
|
|
|
|
|
#include "shared/source/gen12lp/os_agnostic_hw_info_config_gen12lp.inl"
|
2021-07-28 14:45:43 +00:00
|
|
|
|
|
|
|
|
template <>
|
|
|
|
|
void HwInfoConfigHw<IGFX_ALDERLAKE_P>::adjustPlatformForProductFamily(HardwareInfo *hwInfo) {
|
|
|
|
|
PLATFORM *platform = &hwInfo->platform;
|
|
|
|
|
platform->eRenderCoreFamily = IGFX_GEN12LP_CORE;
|
|
|
|
|
platform->eDisplayCoreFamily = IGFX_GEN12LP_CORE;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
|
|
|
|
int HwInfoConfigHw<IGFX_ALDERLAKE_P>::configureHardwareCustom(HardwareInfo *hwInfo, OSInterface *osIface) {
|
|
|
|
|
GT_SYSTEM_INFO *gtSystemInfo = &hwInfo->gtSystemInfo;
|
|
|
|
|
gtSystemInfo->SliceCount = 1;
|
2021-08-20 15:41:43 +00:00
|
|
|
const auto &hwInfoConfig = *HwInfoConfig::get(hwInfo->platform.eProductFamily);
|
|
|
|
|
hwInfo->featureTable.ftrGpGpuMidThreadLevelPreempt = (hwInfo->platform.usRevId >= hwInfoConfig.getHwRevIdFromStepping(REVISION_B, *hwInfo));
|
2021-07-28 14:45:43 +00:00
|
|
|
|
|
|
|
|
enableBlitterOperationsSupport(hwInfo);
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-20 15:41:43 +00:00
|
|
|
template <>
|
|
|
|
|
uint32_t HwInfoConfigHw<IGFX_ALDERLAKE_P>::getHwRevIdFromStepping(uint32_t stepping, const HardwareInfo &hwInfo) const {
|
|
|
|
|
switch (stepping) {
|
|
|
|
|
case REVISION_A0:
|
|
|
|
|
return 0x0;
|
|
|
|
|
case REVISION_B:
|
|
|
|
|
return 0x4;
|
|
|
|
|
}
|
|
|
|
|
return CommonConstants::invalidStepping;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-28 14:45:43 +00:00
|
|
|
template class HwInfoConfigHw<IGFX_ALDERLAKE_P>;
|
|
|
|
|
} // namespace NEO
|