mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
refactor: Refactor product helpers
Related-To: NEO-14627 Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
70f04b112d
commit
1be3d6ad37
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user