refactor: Refactor product helpers

Related-To: NEO-14627

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
This commit is contained in:
Bellekallu Rajkiran
2025-06-19 07:01:25 +00:00
committed by Compute-Runtime-Automation
parent 70f04b112d
commit 1be3d6ad37
8 changed files with 30 additions and 13 deletions

View File

@@ -47,6 +47,7 @@ set(NEO_CORE_OS_INTERFACE
${CMAKE_CURRENT_SOURCE_DIR}/product_helper_before_xe_hpg.inl
${CMAKE_CURRENT_SOURCE_DIR}/product_helper_before_xe2.inl
${CMAKE_CURRENT_SOURCE_DIR}/product_helper_hw.h
${CMAKE_CURRENT_SOURCE_DIR}/product_helper_from_xe_hpc_to_xe3.inl
${CMAKE_CURRENT_SOURCE_DIR}/product_helper_xe_hpc_and_later.inl
${CMAKE_CURRENT_SOURCE_DIR}/product_helper_xe2_and_later.inl
${CMAKE_CURRENT_SOURCE_DIR}/sys_calls_common.h

View File

@@ -0,0 +1,22 @@
/*
* Copyright (C) 2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/os_interface/product_helper.h"
namespace NEO {
template <>
bool ProductHelperHw<gfxProduct>::supports2DBlockLoad() const {
return true;
}
template <>
bool ProductHelperHw<gfxProduct>::supports2DBlockStore() const {
return true;
}
} // namespace NEO

View File

@@ -9,19 +9,9 @@
namespace NEO {
template <>
bool ProductHelperHw<gfxProduct>::supports2DBlockLoad() const {
return true;
}
template <>
bool ProductHelperHw<gfxProduct>::supports2DBlockStore() const {
return true;
}
template <>
size_t ProductHelperHw<gfxProduct>::getSvmCpuAlignment() const {
return MemoryConstants::pageSize64k;
}
} // namespace NEO
} // namespace NEO

View File

@@ -6,6 +6,7 @@
*/
#include "shared/source/os_interface/product_helper.inl"
#include "shared/source/os_interface/product_helper_from_xe_hpc_to_xe3.inl"
#include "shared/source/os_interface/product_helper_from_xe_hpg_to_xe3.inl"
#include "shared/source/os_interface/product_helper_xe2_and_later.inl"
#include "shared/source/os_interface/product_helper_xe_hpc_and_later.inl"

View File

@@ -7,6 +7,7 @@
#include "shared/source/command_stream/command_stream_receiver.h"
#include "shared/source/os_interface/product_helper.inl"
#include "shared/source/os_interface/product_helper_from_xe_hpc_to_xe3.inl"
#include "shared/source/os_interface/product_helper_from_xe_hpg_to_xe3.inl"
#include "shared/source/os_interface/product_helper_xe2_and_later.inl"
#include "shared/source/os_interface/product_helper_xe_hpc_and_later.inl"

View File

@@ -5,6 +5,7 @@
*
*/
#include "shared/source/os_interface/product_helper_from_xe_hpc_to_xe3.inl"
#include "shared/source/os_interface/product_helper_from_xe_hpg_to_xe3.inl"
#include "shared/source/os_interface/product_helper_xe_hpc_and_later.inl"