mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
Related-To: NEO-4744 Change-Id: I7e574d7cf003ed01467c72e797187c0717bb76f2 Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
59 lines
1.9 KiB
C++
59 lines
1.9 KiB
C++
/*
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/debug_settings/debug_settings_manager.h"
|
|
#include "shared/source/helpers/hw_info.h"
|
|
#include "shared/source/helpers/hw_info_config_common_helper.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"
|
|
|
|
namespace NEO {
|
|
|
|
#ifdef SUPPORT_TGLLP
|
|
template <>
|
|
int HwInfoConfigHw<IGFX_TIGERLAKE_LP>::configureHardwareCustom(HardwareInfo *hwInfo, OSInterface *osIface) {
|
|
hwInfo->capabilityTable.ftrRenderCompressedImages = hwInfo->featureTable.ftrE2ECompression;
|
|
hwInfo->capabilityTable.ftrRenderCompressedBuffers = hwInfo->featureTable.ftrE2ECompression;
|
|
|
|
return 0;
|
|
}
|
|
|
|
template <>
|
|
void HwInfoConfigHw<IGFX_TIGERLAKE_LP>::adjustPlatformForProductFamily(HardwareInfo *hwInfo) {
|
|
PLATFORM *platform = &hwInfo->platform;
|
|
platform->eRenderCoreFamily = IGFX_GEN12LP_CORE;
|
|
platform->eDisplayCoreFamily = IGFX_GEN12LP_CORE;
|
|
}
|
|
|
|
template class HwInfoConfigHw<IGFX_TIGERLAKE_LP>;
|
|
#endif
|
|
#ifdef SUPPORT_DG1
|
|
template <>
|
|
int HwInfoConfigHw<IGFX_DG1>::configureHardwareCustom(HardwareInfo *hwInfo, OSInterface *osIface) {
|
|
hwInfo->capabilityTable.ftrRenderCompressedImages = hwInfo->featureTable.ftrE2ECompression;
|
|
hwInfo->capabilityTable.ftrRenderCompressedBuffers = hwInfo->featureTable.ftrE2ECompression;
|
|
HwInfoConfigCommonHelper::enableBlitterOperationsSupport(*hwInfo);
|
|
return 0;
|
|
}
|
|
|
|
template <>
|
|
void HwInfoConfigHw<IGFX_DG1>::adjustPlatformForProductFamily(HardwareInfo *hwInfo) {
|
|
PLATFORM *platform = &hwInfo->platform;
|
|
platform->eRenderCoreFamily = IGFX_GEN12LP_CORE;
|
|
platform->eDisplayCoreFamily = IGFX_GEN12LP_CORE;
|
|
}
|
|
|
|
template <>
|
|
uint64_t HwInfoConfigHw<IGFX_DG1>::getSharedSystemMemCapabilities() {
|
|
return 0;
|
|
}
|
|
|
|
template class HwInfoConfigHw<IGFX_DG1>;
|
|
#endif
|
|
} // namespace NEO
|