Skip to content

Commit 696be48

Browse files
refactor: add preemption xe only file to xehpg and xehpc sources
Signed-off-by: Kamil Kopryk <[email protected]>
1 parent d2eb296 commit 696be48

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

shared/source/command_stream/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2019-2023 Intel Corporation
2+
# Copyright (C) 2019-2024 Intel Corporation
33
#
44
# SPDX-License-Identifier: MIT
55
#
@@ -69,13 +69,18 @@ if(SUPPORT_XEHP_AND_LATER)
6969
${CMAKE_CURRENT_SOURCE_DIR}/aub_command_stream_receiver_hw_xehp_and_later.inl
7070
${CMAKE_CURRENT_SOURCE_DIR}/command_stream_receiver_hw_xehp_and_later.inl
7171
${CMAKE_CURRENT_SOURCE_DIR}/command_stream_receiver_simulated_common_hw_xehp_and_later.inl
72-
${CMAKE_CURRENT_SOURCE_DIR}/preemption_xehp_and_later.inl
7372
${CMAKE_CURRENT_SOURCE_DIR}/scratch_space_controller_xehp_and_later.cpp
7473
${CMAKE_CURRENT_SOURCE_DIR}/scratch_space_controller_xehp_and_later.h
7574
${CMAKE_CURRENT_SOURCE_DIR}/tbx_command_stream_receiver_xehp_and_later.inl
7675
)
7776
endif()
7877

78+
if(SUPPORT_XE_HPG_CORE OR SUPPORT_XE_HPC_CORE)
79+
list(APPEND NEO_CORE_COMMAND_STREAM
80+
${CMAKE_CURRENT_SOURCE_DIR}/preemption_xe.inl
81+
)
82+
endif()
83+
7984
if(SUPPORT_DG2_AND_LATER)
8085
list(APPEND NEO_CORE_COMMAND_STREAM
8186
${CMAKE_CURRENT_SOURCE_DIR}/command_stream_receiver_hw_dg2_and_later.inl

shared/source/command_stream/preemption_xehp_and_later.inl renamed to shared/source/command_stream/preemption_xe.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2018-2023 Intel Corporation
2+
* Copyright (C) 2018-2024 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*

shared/source/xe_hpc_core/preemption_xe_hpc_core.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2020-2022 Intel Corporation
2+
* Copyright (C) 2020-2024 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -14,7 +14,7 @@ namespace NEO {
1414

1515
using GfxFamily = XeHpcCoreFamily;
1616

17-
#include "shared/source/command_stream/preemption_xehp_and_later.inl"
17+
#include "shared/source/command_stream/preemption_xe.inl"
1818

1919
template void PreemptionHelper::programCmdStream<GfxFamily>(LinearStream &cmdStream, PreemptionMode newPreemptionMode,
2020
PreemptionMode oldPreemptionMode, GraphicsAllocation *preemptionCsr);

shared/source/xe_hpg_core/preemption_xe_hpg_core.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2021-2022 Intel Corporation
2+
* Copyright (C) 2021-2024 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -14,7 +14,7 @@ namespace NEO {
1414

1515
using GfxFamily = XeHpgCoreFamily;
1616

17-
#include "shared/source/command_stream/preemption_xehp_and_later.inl"
17+
#include "shared/source/command_stream/preemption_xe.inl"
1818

1919
template void PreemptionHelper::programCmdStream<GfxFamily>(LinearStream &cmdStream, PreemptionMode newPreemptionMode,
2020
PreemptionMode oldPreemptionMode, GraphicsAllocation *preemptionCsr);

0 commit comments

Comments
 (0)