2019-09-19 01:32:33 +08:00
|
|
|
/*
|
2020-01-31 21:35:46 +08:00
|
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
2019-09-19 01:32:33 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/debug_settings/debug_settings_manager.h"
|
|
|
|
#include "shared/source/helpers/hw_info.h"
|
2020-05-04 22:34:13 +08:00
|
|
|
#include "shared/source/helpers/hw_info_config_common_helper.h"
|
2020-02-24 05:44:01 +08:00
|
|
|
#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-19 01:32:33 +08:00
|
|
|
|
|
|
|
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 class HwInfoConfigHw<IGFX_TIGERLAKE_LP>;
|
|
|
|
#endif
|
2020-06-16 20:18:59 +08:00
|
|
|
#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;
|
|
|
|
}
|
|
|
|
|
2020-10-07 20:21:18 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_DG1>::isEvenContextCountRequired() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2020-06-16 20:18:59 +08:00
|
|
|
template <>
|
|
|
|
uint64_t HwInfoConfigHw<IGFX_DG1>::getSharedSystemMemCapabilities() {
|
|
|
|
return 0;
|
|
|
|
}
|
2019-09-19 01:32:33 +08:00
|
|
|
|
2020-06-16 20:18:59 +08:00
|
|
|
template class HwInfoConfigHw<IGFX_DG1>;
|
|
|
|
#endif
|
2020-08-21 02:50:19 +08:00
|
|
|
#ifdef SUPPORT_RKL
|
|
|
|
template <>
|
|
|
|
int HwInfoConfigHw<IGFX_ROCKETLAKE>::configureHardwareCustom(HardwareInfo *hwInfo, OSInterface *osIface) {
|
|
|
|
hwInfo->capabilityTable.ftrRenderCompressedImages = hwInfo->featureTable.ftrE2ECompression;
|
|
|
|
hwInfo->capabilityTable.ftrRenderCompressedBuffers = hwInfo->featureTable.ftrE2ECompression;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
template class HwInfoConfigHw<IGFX_ROCKETLAKE>;
|
|
|
|
#endif
|
2020-10-08 21:40:40 +08:00
|
|
|
#ifdef SUPPORT_ADLS
|
|
|
|
template <>
|
|
|
|
int HwInfoConfigHw<IGFX_ALDERLAKE_S>::configureHardwareCustom(HardwareInfo *hwInfo, OSInterface *osIface) {
|
|
|
|
hwInfo->capabilityTable.ftrRenderCompressedImages = hwInfo->featureTable.ftrE2ECompression;
|
|
|
|
hwInfo->capabilityTable.ftrRenderCompressedBuffers = hwInfo->featureTable.ftrE2ECompression;
|
2020-06-27 01:47:03 +08:00
|
|
|
|
2020-10-08 21:40:40 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
template class HwInfoConfigHw<IGFX_ALDERLAKE_S>;
|
|
|
|
#endif
|
2019-09-19 01:32:33 +08:00
|
|
|
} // namespace NEO
|