2021-08-19 19:06:49 +08:00
|
|
|
/*
|
2022-07-25 23:30:11 +08:00
|
|
|
* Copyright (C) 2021-2022 Intel Corporation
|
2021-08-19 19:06:49 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2021-08-25 23:39:07 +08:00
|
|
|
template <>
|
|
|
|
void HwInfoConfigHw<gfxProduct>::adjustPlatformForProductFamily(HardwareInfo *hwInfo) {
|
2021-09-24 22:29:49 +08:00
|
|
|
hwInfo->platform.eRenderCoreFamily = GFXCORE_FAMILY::IGFX_GEN12LP_CORE;
|
|
|
|
hwInfo->platform.eDisplayCoreFamily = GFXCORE_FAMILY::IGFX_GEN12LP_CORE;
|
2021-08-25 23:39:07 +08:00
|
|
|
}
|
|
|
|
|
2021-08-19 19:06:49 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<gfxProduct>::isPageTableManagerSupported(const HardwareInfo &hwInfo) const {
|
|
|
|
return hwInfo.capabilityTable.ftrRenderCompressedBuffers || hwInfo.capabilityTable.ftrRenderCompressedImages;
|
|
|
|
}
|
2021-08-25 18:28:05 +08:00
|
|
|
|
|
|
|
template <>
|
|
|
|
void HwInfoConfigHw<gfxProduct>::adjustSamplerState(void *sampler, const HardwareInfo &hwInfo) {
|
2022-07-25 23:30:11 +08:00
|
|
|
using SAMPLER_STATE = typename Gen12LpFamily::SAMPLER_STATE;
|
2021-08-25 18:28:05 +08:00
|
|
|
auto samplerState = reinterpret_cast<SAMPLER_STATE *>(sampler);
|
|
|
|
if (DebugManager.flags.ForceSamplerLowFilteringPrecision.get()) {
|
|
|
|
samplerState->setLowQualityFilter(SAMPLER_STATE::LOW_QUALITY_FILTER_ENABLE);
|
|
|
|
}
|
|
|
|
}
|