Files
compute-runtime/shared/source/release_helper/release_helper_1274.cpp
Jaroslaw Warchulski 48fbf4c1d3 feature: enable bindless mode and global bindless allocator in L0 on ARL
Related-To: NEO-14995
Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com>
2025-05-23 17:34:29 +02:00

79 lines
2.4 KiB
C++

/*
* Copyright (C) 2023-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/release_helper/release_helper.h"
#include "shared/source/release_helper/release_helper_base.inl"
#include "shared/source/xe_hpg_core/hw_cmds_xe_hpg_core_base.h"
#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;
}
template <>
bool ReleaseHelperHw<release>::isDirectSubmissionLightSupported() const {
return true;
}
template <>
bool ReleaseHelperHw<release>::isDirectSubmissionSupported() const {
return true;
}
template <>
bool ReleaseHelperHw<release>::getFtrXe2Compression() const {
return false;
}
template <>
bool ReleaseHelperHw<release>::isBlitImageAllowedForDepthFormat() const {
return false;
}
template <>
inline bool ReleaseHelperHw<release>::isBindlessAddressingDisabled() const {
return false;
}
template <>
inline bool ReleaseHelperHw<release>::isGlobalBindlessAllocatorEnabled() const {
return true;
}
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 = {{
{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},
}};
return sizeToPreferredSlmValue;
}
} // namespace NEO
template class NEO::ReleaseHelperHw<NEO::release>;