2023-12-01 18:56:55 +08:00
|
|
|
/*
|
2025-02-19 21:45:56 +08:00
|
|
|
* Copyright (C) 2023-2025 Intel Corporation
|
2023-12-01 18:56:55 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "shared/source/release_helper/release_helper.h"
|
|
|
|
#include "shared/source/release_helper/release_helper_base.inl"
|
2024-10-02 17:50:19 +08:00
|
|
|
#include "shared/source/xe_hpg_core/hw_cmds_xe_hpg_core_base.h"
|
2023-12-01 18:56:55 +08:00
|
|
|
|
|
|
|
#include "release_definitions.h"
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
constexpr auto release = ReleaseType::release1274;
|
|
|
|
|
|
|
|
template <>
|
|
|
|
bool ReleaseHelperHw<release>::isAdjustWalkOrderAvailable() const {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
bool ReleaseHelperHw<release>::isBFloat16ConversionSupported() const {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
bool ReleaseHelperHw<release>::isPipeControlPriorToPipelineSelectWaRequired() const {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2025-02-19 21:45:56 +08:00
|
|
|
template <>
|
|
|
|
bool ReleaseHelperHw<release>::isDirectSubmissionLightSupported() const {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2024-01-26 22:59:43 +08:00
|
|
|
template <>
|
|
|
|
bool ReleaseHelperHw<release>::isDirectSubmissionSupported() const {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2024-12-20 20:36:51 +08:00
|
|
|
template <>
|
|
|
|
bool ReleaseHelperHw<release>::getFtrXe2Compression() const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2025-05-13 20:27:02 +08:00
|
|
|
template <>
|
|
|
|
bool ReleaseHelperHw<release>::isBlitImageAllowedForDepthFormat() const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2025-05-23 23:32:40 +08:00
|
|
|
template <>
|
|
|
|
inline bool ReleaseHelperHw<release>::isBindlessAddressingDisabled() const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
inline bool ReleaseHelperHw<release>::isGlobalBindlessAllocatorEnabled() const {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2024-10-02 17:50:19 +08:00
|
|
|
template <>
|
|
|
|
const SizeToPreferredSlmValueArray &ReleaseHelperHw<release>::getSizeToPreferredSlmValue(bool isHeapless) const {
|
|
|
|
using PREFERRED_SLM_ALLOCATION_SIZE = typename XeHpgCoreFamily::INTERFACE_DESCRIPTOR_DATA::PREFERRED_SLM_ALLOCATION_SIZE;
|
|
|
|
static const SizeToPreferredSlmValueArray sizeToPreferredSlmValue = {{
|
2024-12-24 00:49:27 +08:00
|
|
|
{0, PREFERRED_SLM_ALLOCATION_SIZE::PREFERRED_SLM_ALLOCATION_SIZE_0KB},
|
|
|
|
{16 * MemoryConstants::kiloByte, PREFERRED_SLM_ALLOCATION_SIZE::PREFERRED_SLM_ALLOCATION_SIZE_16KB},
|
|
|
|
{32 * MemoryConstants::kiloByte, PREFERRED_SLM_ALLOCATION_SIZE::PREFERRED_SLM_ALLOCATION_SIZE_32KB},
|
|
|
|
{64 * MemoryConstants::kiloByte, PREFERRED_SLM_ALLOCATION_SIZE::PREFERRED_SLM_ALLOCATION_SIZE_64KB},
|
|
|
|
{96 * MemoryConstants::kiloByte, PREFERRED_SLM_ALLOCATION_SIZE::PREFERRED_SLM_ALLOCATION_SIZE_96KB},
|
|
|
|
{std::numeric_limits<uint32_t>::max(), PREFERRED_SLM_ALLOCATION_SIZE::PREFERRED_SLM_ALLOCATION_SIZE_128KB},
|
2024-10-02 17:50:19 +08:00
|
|
|
}};
|
|
|
|
return sizeToPreferredSlmValue;
|
|
|
|
}
|
|
|
|
|
2023-12-01 18:56:55 +08:00
|
|
|
} // namespace NEO
|
|
|
|
|
|
|
|
template class NEO::ReleaseHelperHw<NEO::release>;
|