Skip to content

Commit 3da9aeb

Browse files
Extract functions to command_queue_hw_base.inl
Change-Id: I172c5d29cc81c4f1a95f6475ec261975ee21fab6 Related-To: NEO-3016 Signed-off-by: Maciej Dziuban <[email protected]>
1 parent a3ad3b9 commit 3da9aeb

7 files changed

+37
-20
lines changed

runtime/command_queue/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ set(RUNTIME_SRCS_COMMAND_QUEUE
99
${CMAKE_CURRENT_SOURCE_DIR}/command_queue.cpp
1010
${CMAKE_CURRENT_SOURCE_DIR}/command_queue.h
1111
${CMAKE_CURRENT_SOURCE_DIR}/command_queue_hw.h
12-
${CMAKE_CURRENT_SOURCE_DIR}/command_queue_hw.inl
12+
${CMAKE_CURRENT_SOURCE_DIR}/command_queue_hw_base.inl
13+
${CMAKE_CURRENT_SOURCE_DIR}/command_queue_hw_bdw_plus.inl
1314
${CMAKE_CURRENT_SOURCE_DIR}/cpu_data_transfer_handler.cpp
1415
${CMAKE_CURRENT_SOURCE_DIR}/enqueue_barrier.h
1516
${CMAKE_CURRENT_SOURCE_DIR}/enqueue_common.h

runtime/command_queue/command_queue_hw.inl renamed to runtime/command_queue/command_queue_hw_base.inl

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2017-2019 Intel Corporation
2+
* Copyright (C) 2019 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -41,18 +41,5 @@ void CommandQueueHw<Family>::notifyEnqueueReadImage(Image *image, bool blockingR
4141
image->getGraphicsAllocation()->setAllocDumpable(blockingRead);
4242
}
4343
}
44-
template <typename Family>
45-
bool CommandQueueHw<Family>::requiresCacheFlushAfterWalkerBasedOnProperties(const cl_queue_properties *properties) {
46-
return false;
47-
}
48-
template <typename GfxFamily>
49-
void CommandQueueHw<GfxFamily>::submitCacheFlush(Surface **surfaces,
50-
size_t numSurfaces,
51-
LinearStream *commandStream,
52-
uint64_t postSyncAddress) {
53-
}
54-
template <typename GfxFamily>
55-
bool CommandQueueHw<GfxFamily>::isCacheFlushCommand(uint32_t commandType) {
56-
return false;
57-
}
44+
5845
} // namespace NEO
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Copyright (C) 2019 Intel Corporation
3+
*
4+
* SPDX-License-Identifier: MIT
5+
*
6+
*/
7+
8+
#include "runtime/command_queue/command_queue_hw_base.inl"
9+
10+
namespace NEO {
11+
12+
template <typename GfxFamily>
13+
bool CommandQueueHw<GfxFamily>::requiresCacheFlushAfterWalkerBasedOnProperties(const cl_queue_properties *properties) {
14+
return false;
15+
}
16+
17+
template <typename GfxFamily>
18+
void CommandQueueHw<GfxFamily>::submitCacheFlush(Surface **surfaces,
19+
size_t numSurfaces,
20+
LinearStream *commandStream,
21+
uint64_t postSyncAddress) {
22+
}
23+
24+
template <typename GfxFamily>
25+
bool CommandQueueHw<GfxFamily>::isCacheFlushCommand(uint32_t commandType) {
26+
return false;
27+
}
28+
29+
} // namespace NEO

runtime/gen10/command_queue_gen10.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
#include "runtime/command_queue/command_queue_hw.h"
9-
#include "runtime/command_queue/command_queue_hw.inl"
9+
#include "runtime/command_queue/command_queue_hw_bdw_plus.inl"
1010
#include "runtime/command_queue/enqueue_resource_barrier.h"
1111
#include "runtime/memory_manager/svm_memory_manager.h"
1212

runtime/gen11/command_queue_gen11.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
#include "runtime/command_queue/command_queue_hw.h"
9-
#include "runtime/command_queue/command_queue_hw.inl"
9+
#include "runtime/command_queue/command_queue_hw_bdw_plus.inl"
1010
#include "runtime/command_queue/enqueue_resource_barrier.h"
1111
#include "runtime/memory_manager/svm_memory_manager.h"
1212

runtime/gen8/command_queue_gen8.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
#include "runtime/command_queue/command_queue_hw.h"
9-
#include "runtime/command_queue/command_queue_hw.inl"
9+
#include "runtime/command_queue/command_queue_hw_bdw_plus.inl"
1010
#include "runtime/command_queue/enqueue_resource_barrier.h"
1111
#include "runtime/memory_manager/svm_memory_manager.h"
1212

runtime/gen9/command_queue_gen9.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
#include "runtime/command_queue/command_queue_hw.h"
9-
#include "runtime/command_queue/command_queue_hw.inl"
9+
#include "runtime/command_queue/command_queue_hw_bdw_plus.inl"
1010
#include "runtime/command_queue/enqueue_resource_barrier.h"
1111
#include "runtime/memory_manager/svm_memory_manager.h"
1212

0 commit comments

Comments
 (0)