84 lines
2.7 KiB
C++
84 lines
2.7 KiB
C++
/*
|
|
* Copyright (C) 2020-2021 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/debug_settings/debug_settings_manager.h"
|
|
#include "shared/source/helpers/hw_helper.h"
|
|
#include "shared/source/os_interface/hw_info_config.h"
|
|
|
|
namespace NEO {
|
|
|
|
template <PRODUCT_FAMILY gfxProduct>
|
|
int HwInfoConfigHw<gfxProduct>::configureHardwareCustom(HardwareInfo *hwInfo, OSInterface *osIface) {
|
|
enableRenderCompression(hwInfo);
|
|
enableBlitterOperationsSupport(hwInfo);
|
|
|
|
return 0;
|
|
}
|
|
|
|
template <PRODUCT_FAMILY gfxProduct>
|
|
void HwInfoConfigHw<gfxProduct>::getKernelExtendedProperties(uint32_t *fp16, uint32_t *fp32, uint32_t *fp64) {
|
|
*fp16 = 0u;
|
|
*fp32 = 0u;
|
|
*fp64 = 0u;
|
|
}
|
|
|
|
template <PRODUCT_FAMILY gfxProduct>
|
|
uint64_t HwInfoConfigHw<gfxProduct>::getSharedSystemMemCapabilities() {
|
|
return 0;
|
|
}
|
|
|
|
template <PRODUCT_FAMILY gfxProduct>
|
|
void HwInfoConfigHw<gfxProduct>::convertTimestampsFromOaToCsDomain(uint64_t ×tampData){};
|
|
|
|
template <PRODUCT_FAMILY gfxProduct>
|
|
void HwInfoConfigHw<gfxProduct>::adjustPlatformForProductFamily(HardwareInfo *hwInfo) {}
|
|
|
|
template <PRODUCT_FAMILY gfxProduct>
|
|
void HwInfoConfigHw<gfxProduct>::adjustSamplerState(void *sampler, const HardwareInfo &hwInfo) {}
|
|
|
|
template <PRODUCT_FAMILY gfxProduct>
|
|
void HwInfoConfigHw<gfxProduct>::enableBlitterOperationsSupport(HardwareInfo *hwInfo) {
|
|
hwInfo->capabilityTable.blitterOperationsSupported = HwHelper::get(hwInfo->platform.eRenderCoreFamily).obtainBlitterPreference(*hwInfo);
|
|
|
|
if (DebugManager.flags.EnableBlitterOperationsSupport.get() != -1) {
|
|
hwInfo->capabilityTable.blitterOperationsSupported = !!DebugManager.flags.EnableBlitterOperationsSupport.get();
|
|
}
|
|
}
|
|
|
|
template <PRODUCT_FAMILY gfxProduct>
|
|
uint64_t HwInfoConfigHw<gfxProduct>::getDeviceMemCapabilities() {
|
|
return (UNIFIED_SHARED_MEMORY_ACCESS | UNIFIED_SHARED_MEMORY_ATOMIC_ACCESS);
|
|
}
|
|
|
|
template <PRODUCT_FAMILY gfxProduct>
|
|
uint64_t HwInfoConfigHw<gfxProduct>::getSingleDeviceSharedMemCapabilities() {
|
|
return (UNIFIED_SHARED_MEMORY_ACCESS | UNIFIED_SHARED_MEMORY_ATOMIC_ACCESS);
|
|
}
|
|
|
|
template <PRODUCT_FAMILY gfxProduct>
|
|
bool HwInfoConfigHw<gfxProduct>::getHostMemCapabilitiesSupported(const HardwareInfo *hwInfo) {
|
|
return true;
|
|
}
|
|
|
|
template <PRODUCT_FAMILY gfxProduct>
|
|
uint64_t HwInfoConfigHw<gfxProduct>::getHostMemCapabilities(const HardwareInfo *hwInfo) {
|
|
bool supported = getHostMemCapabilitiesSupported(hwInfo);
|
|
|
|
if (DebugManager.flags.EnableHostUsmSupport.get() != -1) {
|
|
supported = !!DebugManager.flags.EnableHostUsmSupport.get();
|
|
}
|
|
|
|
return (supported ? getHostMemCapabilitiesValue() : 0);
|
|
}
|
|
|
|
template <PRODUCT_FAMILY gfxProduct>
|
|
uint32_t HwInfoConfigHw<gfxProduct>::getDeviceMemoryMaxClkRate(const HardwareInfo *hwInfo) {
|
|
return 0u;
|
|
}
|
|
|
|
} // namespace NEO
|