Skip to content

Commit f4c151c

Browse files
Refactor PipeControlArgs struct
Remove struct PipeControlArgsBase Signed-off-by: Filip Hazubski <[email protected]>
1 parent 45810d9 commit f4c151c

35 files changed

+39
-81
lines changed

level_zero/core/source/cmdlist/cmdlist_hw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
#pragma once
99

1010
#include "shared/source/command_stream/stream_properties.h"
11+
#include "shared/source/helpers/pipe_control_args.h"
1112

1213
#include "level_zero/core/source/builtin/builtin_functions_lib.h"
1314
#include "level_zero/core/source/cmdlist/cmdlist_imp.h"
1415

1516
#include "igfxfmid.h"
16-
#include "pipe_control_args.h"
1717

1818
namespace NEO {
1919
enum class ImageType;

level_zero/core/source/cmdlist/cmdlist_hw.inl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "shared/source/helpers/heap_helper.h"
1717
#include "shared/source/helpers/hw_helper.h"
1818
#include "shared/source/helpers/hw_info.h"
19+
#include "shared/source/helpers/pipe_control_args.h"
1920
#include "shared/source/helpers/preamble.h"
2021
#include "shared/source/helpers/register_offsets.h"
2122
#include "shared/source/helpers/string.h"
@@ -38,8 +39,6 @@
3839
#include "level_zero/core/source/image/image.h"
3940
#include "level_zero/core/source/module/module.h"
4041

41-
#include "pipe_control_args.h"
42-
4342
#include <algorithm>
4443

4544
namespace L0 {

level_zero/core/source/cmdlist/cmdlist_hw_base.inl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "shared/source/command_container/command_encoder.h"
1111
#include "shared/source/command_stream/linear_stream.h"
1212
#include "shared/source/command_stream/preemption.h"
13+
#include "shared/source/helpers/pipe_control_args.h"
1314
#include "shared/source/helpers/register_offsets.h"
1415
#include "shared/source/helpers/simd_helper.h"
1516
#include "shared/source/memory_manager/graphics_allocation.h"
@@ -20,8 +21,6 @@
2021

2122
#include "level_zero/core/source/kernel/kernel_imp.h"
2223

23-
#include "pipe_control_args.h"
24-
2524
#include <algorithm>
2625

2726
namespace L0 {

level_zero/core/source/cmdqueue/cmdqueue_hw.inl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "shared/source/device/device.h"
1919
#include "shared/source/helpers/hw_helper.h"
2020
#include "shared/source/helpers/hw_info.h"
21+
#include "shared/source/helpers/pipe_control_args.h"
2122
#include "shared/source/helpers/preamble.h"
2223
#include "shared/source/memory_manager/memory_manager.h"
2324
#include "shared/source/memory_manager/residency_container.h"
@@ -35,8 +36,6 @@
3536
#include "level_zero/core/source/fence/fence.h"
3637
#include "level_zero/tools/source/metrics/metric.h"
3738

38-
#include "pipe_control_args.h"
39-
4039
#include <limits>
4140
#include <thread>
4241

level_zero/core/source/cmdqueue/cmdqueue_xe_hp_core_and_later.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
#include "shared/source/gmm_helper/gmm_helper.h"
1111
#include "shared/source/helpers/api_specific_config.h"
1212
#include "shared/source/helpers/hw_helper.h"
13+
#include "shared/source/helpers/pipe_control_args.h"
1314
#include "shared/source/helpers/state_base_address.h"
1415
#include "shared/source/os_interface/hw_info_config.h"
1516

1617
#include "level_zero/core/source/cmdqueue/cmdqueue_hw.h"
1718

1819
#include "igfxfmid.h"
19-
#include "pipe_control_args.h"
2020

2121
namespace L0 {
2222

level_zero/core/source/gen11/cmdlist_gen11.inl

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

8-
#include "pipe_control_args.h"
8+
#include "shared/source/helpers/pipe_control_args.h"
99

1010
namespace L0 {
1111

level_zero/core/source/gen12lp/definitions/cache_flush_gen12lp.inl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
*/
77

88
#include "shared/source/helpers/cache_flush.inl"
9+
#include "shared/source/helpers/pipe_control_args.h"
910

1011
#include "level_zero/core/source/cmdlist/cmdlist_hw.h"
1112

12-
#include "pipe_control_args.h"
13-
1413
namespace L0 {
1514

1615
template <GFXCORE_FAMILY gfxCoreFamily>

level_zero/core/source/gen9/cmdlist_gen9.inl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@
99

1010
#include "shared/source/gen9/hw_cmds.h"
1111
#include "shared/source/gen9/hw_info.h"
12+
#include "shared/source/helpers/pipe_control_args.h"
1213

1314
#include "level_zero/core/source/cmdlist/cmdlist_hw.h"
1415

15-
#include "pipe_control_args.h"
16-
1716
namespace L0 {
1817

1918
template struct CommandListCoreFamily<IGFX_GEN9_CORE>;

opencl/source/built_ins/aux_translation_builtin.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@
88
#pragma once
99
#include "shared/source/built_ins/built_ins.h"
1010
#include "shared/source/helpers/hw_helper.h"
11+
#include "shared/source/helpers/pipe_control_args.h"
1112
#include "shared/source/memory_manager/graphics_allocation.h"
1213

1314
#include "opencl/source/built_ins/builtins_dispatch_builder.h"
1415
#include "opencl/source/helpers/dispatch_info_builder.h"
1516
#include "opencl/source/kernel/kernel_objects_for_aux_translation.h"
1617
#include "opencl/source/mem_obj/buffer.h"
1718

18-
#include "pipe_control_args.h"
19-
2019
#include <memory>
2120

2221
namespace NEO {

opencl/source/command_queue/enqueue_common.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "shared/source/helpers/array_count.h"
1212
#include "shared/source/helpers/engine_node_helper.h"
1313
#include "shared/source/helpers/local_work_size.h"
14+
#include "shared/source/helpers/pipe_control_args.h"
1415
#include "shared/source/memory_manager/internal_allocation_storage.h"
1516
#include "shared/source/memory_manager/memory_manager.h"
1617
#include "shared/source/memory_manager/surface.h"
@@ -42,8 +43,6 @@
4243
#include "opencl/source/program/printf_handler.h"
4344
#include "opencl/source/utilities/cl_logger.h"
4445

45-
#include "pipe_control_args.h"
46-
4746
#include <algorithm>
4847
#include <new>
4948

opencl/source/command_queue/gpgpu_walker_base.inl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "shared/source/helpers/engine_node_helper.h"
1414
#include "shared/source/helpers/hw_helper.h"
1515
#include "shared/source/helpers/local_id_gen.h"
16+
#include "shared/source/helpers/pipe_control_args.h"
1617
#include "shared/source/indirect_heap/indirect_heap.h"
1718
#include "shared/source/memory_manager/graphics_allocation.h"
1819
#include "shared/source/os_interface/os_context.h"
@@ -28,8 +29,6 @@
2829
#include "opencl/source/helpers/queue_helpers.h"
2930
#include "opencl/source/mem_obj/mem_obj.h"
3031

31-
#include "pipe_control_args.h"
32-
3332
#include <algorithm>
3433
#include <cmath>
3534

opencl/source/command_queue/gpgpu_walker_bdw_and_later.inl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
#pragma once
99
#include "shared/source/execution_environment/root_device_environment.h"
1010
#include "shared/source/helpers/hw_helper.h"
11+
#include "shared/source/helpers/pipe_control_args.h"
1112
#include "shared/source/helpers/simd_helper.h"
1213

1314
#include "opencl/source/cl_device/cl_device.h"
1415
#include "opencl/source/command_queue/gpgpu_walker_base.inl"
1516

16-
#include "pipe_control_args.h"
17-
1817
namespace NEO {
1918

2019
template <typename GfxFamily>

opencl/source/command_queue/hardware_interface_base.inl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "shared/source/command_container/command_encoder.h"
1010
#include "shared/source/helpers/hw_helper.h"
1111
#include "shared/source/helpers/pause_on_gpu_properties.h"
12+
#include "shared/source/helpers/pipe_control_args.h"
1213
#include "shared/source/memory_manager/internal_allocation_storage.h"
1314

1415
#include "opencl/source/command_queue/gpgpu_walker.h"
@@ -18,8 +19,6 @@
1819
#include "opencl/source/helpers/task_information.h"
1920
#include "opencl/source/mem_obj/buffer.h"
2021

21-
#include "pipe_control_args.h"
22-
2322
namespace NEO {
2423

2524
template <typename GfxFamily>

opencl/source/device_queue/device_queue_hw_base.inl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#pragma once
99
#include "shared/source/helpers/hw_helper.h"
10+
#include "shared/source/helpers/pipe_control_args.h"
1011
#include "shared/source/helpers/preamble.h"
1112
#include "shared/source/helpers/string.h"
1213
#include "shared/source/memory_manager/memory_manager.h"
@@ -16,8 +17,6 @@
1617
#include "opencl/source/device_queue/device_queue_hw.h"
1718
#include "opencl/source/helpers/hardware_commands_helper.h"
1819

19-
#include "pipe_control_args.h"
20-
2120
namespace NEO {
2221
template <typename GfxFamily>
2322
void DeviceQueueHw<GfxFamily>::allocateSlbBuffer() {

opencl/source/helpers/hardware_commands_helper_bdw_and_later.inl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77

88
#pragma once
99
#include "shared/source/helpers/hw_helper.h"
10+
#include "shared/source/helpers/pipe_control_args.h"
1011

1112
#include "opencl/source/command_queue/command_queue.h"
1213
#include "opencl/source/helpers/hardware_commands_helper.h"
1314
#include "opencl/source/kernel/kernel.h"
1415

15-
#include "pipe_control_args.h"
16-
1716
namespace NEO {
1817

1918
template <typename GfxFamily>

opencl/source/helpers/hardware_commands_helper_xehp_and_later.inl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@
1010
#include "shared/source/helpers/flat_batch_buffer_helper.h"
1111
#include "shared/source/helpers/hw_helper.h"
1212
#include "shared/source/helpers/l3_range.h"
13+
#include "shared/source/helpers/pipe_control_args.h"
1314
#include "shared/source/helpers/string.h"
1415

1516
#include "opencl/source/cl_device/cl_device.h"
1617
#include "opencl/source/command_queue/command_queue.h"
1718
#include "opencl/source/helpers/hardware_commands_helper.h"
1819
#include "opencl/source/kernel/kernel.h"
1920

20-
#include "pipe_control_args.h"
21-
2221
namespace NEO {
2322

2423
template <typename GfxFamily>

opencl/test/unit_test/helpers/hw_helper_tests.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "shared/source/gmm_helper/gmm_helper.h"
1212
#include "shared/source/gmm_helper/resource_info.h"
1313
#include "shared/source/helpers/aligned_memory.h"
14+
#include "shared/source/helpers/pipe_control_args.h"
1415
#include "shared/source/helpers/string.h"
1516
#include "shared/source/memory_manager/graphics_allocation.h"
1617
#include "shared/source/os_interface/hw_info_config.h"
@@ -29,8 +30,6 @@
2930
#include "opencl/test/unit_test/mocks/mock_buffer.h"
3031
#include "opencl/test/unit_test/mocks/mock_context.h"
3132

32-
#include "pipe_control_args.h"
33-
3433
#include <chrono>
3534
#include <iostream>
3635
#include <numeric>

opencl/test/unit_test/helpers/hw_helper_tests_dg2_and_later.cpp

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

88
#include "shared/source/helpers/hw_helper.h"
9+
#include "shared/source/helpers/pipe_control_args.h"
910
#include "shared/source/os_interface/hw_info_config.h"
1011
#include "shared/test/common/cmd_parse/gen_cmd_parse.h"
1112
#include "shared/test/common/helpers/debug_manager_state_restore.h"
@@ -15,8 +16,6 @@
1516

1617
#include "opencl/test/unit_test/fixtures/cl_device_fixture.h"
1718

18-
#include "pipe_control_args.h"
19-
2019
using PipeControlHelperTestsDg2AndLater = ::testing::Test;
2120
using HwHelperTestsDg2AndLater = Test<ClDeviceFixture>;
2221

opencl/test/unit_test/helpers/hw_helper_tests_xehp_and_later.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "shared/source/command_container/command_encoder.h"
99
#include "shared/source/gmm_helper/gmm_helper.h"
1010
#include "shared/source/helpers/engine_node_helper.h"
11+
#include "shared/source/helpers/pipe_control_args.h"
1112
#include "shared/source/os_interface/hw_info_config.h"
1213
#include "shared/test/common/cmd_parse/gen_cmd_parse.h"
1314
#include "shared/test/common/helpers/debug_manager_state_restore.h"
@@ -22,7 +23,6 @@
2223
#include "opencl/test/unit_test/mocks/mock_context.h"
2324

2425
#include "engine_node.h"
25-
#include "pipe_control_args.h"
2626

2727
using HwHelperTestXeHPAndLater = Test<ClDeviceFixture>;
2828

shared/source/command_container/command_encoder_bdw_and_later.inl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@
1313
#include "shared/source/gmm_helper/gmm_helper.h"
1414
#include "shared/source/helpers/api_specific_config.h"
1515
#include "shared/source/helpers/hw_helper.h"
16+
#include "shared/source/helpers/pipe_control_args.h"
1617
#include "shared/source/helpers/simd_helper.h"
1718
#include "shared/source/helpers/state_base_address.h"
1819
#include "shared/source/kernel/dispatch_kernel_encoder_interface.h"
1920
#include "shared/source/kernel/implicit_args.h"
2021

21-
#include "pipe_control_args.h"
22-
2322
#include <algorithm>
2423

2524
namespace NEO {

shared/source/command_container/command_encoder_xehp_and_later.inl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "shared/source/helpers/basic_math.h"
2020
#include "shared/source/helpers/constants.h"
2121
#include "shared/source/helpers/hw_helper.h"
22+
#include "shared/source/helpers/pipe_control_args.h"
2223
#include "shared/source/helpers/pipeline_select_helper.h"
2324
#include "shared/source/helpers/ray_tracing_helper.h"
2425
#include "shared/source/helpers/simd_helper.h"
@@ -28,8 +29,6 @@
2829
#include "shared/source/kernel/kernel_descriptor.h"
2930
#include "shared/source/os_interface/hw_info_config.h"
3031

31-
#include "pipe_control_args.h"
32-
3332
#include <algorithm>
3433

3534
namespace NEO {

shared/source/command_container/walker_partition_xehp_and_later.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
#include "shared/source/helpers/basic_math.h"
1414
#include "shared/source/helpers/hw_helper.h"
1515
#include "shared/source/helpers/hw_info.h"
16+
#include "shared/source/helpers/pipe_control_args.h"
1617
#include "shared/source/helpers/ptr_math.h"
1718

18-
#include "pipe_control_args.h"
19-
2019
#include <cassert>
2120
#include <optional>
2221

shared/source/command_stream/command_stream_receiver.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@
1919
#include "shared/source/helpers/completion_stamp.h"
2020
#include "shared/source/helpers/flat_batch_buffer_helper.h"
2121
#include "shared/source/helpers/options.h"
22+
#include "shared/source/helpers/pipe_control_args.h"
2223
#include "shared/source/indirect_heap/indirect_heap.h"
2324
#include "shared/source/kernel/grf_config.h"
2425
#include "shared/source/os_interface/os_thread.h"
2526
#include "shared/source/utilities/spinlock.h"
2627

27-
#include "pipe_control_args.h"
28-
2928
#include <cstddef>
3029
#include <cstdint>
3130

shared/source/command_stream/command_stream_receiver_hw_tgllp_and_later.inl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
#include "shared/source/command_container/command_encoder.h"
99
#include "shared/source/command_stream/command_stream_receiver_hw.h"
1010
#include "shared/source/device/device.h"
11+
#include "shared/source/helpers/pipe_control_args.h"
1112
#include "shared/source/helpers/state_compute_mode_helper.h"
1213
#include "shared/source/os_interface/hw_info_config.h"
1314

14-
#include "pipe_control_args.h"
15-
1615
namespace NEO {
1716
template <typename GfxFamily>
1817
void CommandStreamReceiverHw<GfxFamily>::programComputeMode(LinearStream &stream, DispatchFlags &dispatchFlags, const HardwareInfo &hwInfo) {

shared/source/command_stream/experimental_command_buffer.inl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010
#include "shared/source/command_stream/linear_stream.h"
1111
#include "shared/source/execution_environment/root_device_environment.h"
1212
#include "shared/source/helpers/hw_helper.h"
13+
#include "shared/source/helpers/pipe_control_args.h"
1314
#include "shared/source/memory_manager/graphics_allocation.h"
1415

15-
#include "pipe_control_args.h"
16-
1716
namespace NEO {
1817

1918
template <typename GfxFamily>

shared/source/command_stream/preemption.inl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@
99
#include "shared/source/command_stream/preemption.h"
1010
#include "shared/source/device/device.h"
1111
#include "shared/source/helpers/hw_helper.h"
12+
#include "shared/source/helpers/pipe_control_args.h"
1213
#include "shared/source/helpers/preamble.h"
1314
#include "shared/source/memory_manager/graphics_allocation.h"
1415

15-
#include "pipe_control_args.h"
16-
1716
namespace NEO {
1817

1918
template <typename GfxFamily>

0 commit comments

Comments
 (0)