Refactor PipeControlArgs struct

Remove struct PipeControlArgsBase

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2021-12-22 14:11:05 +00:00
committed by Compute-Runtime-Automation
parent 45810d9918
commit f4c151cce5
35 changed files with 39 additions and 81 deletions

View File

@@ -8,12 +8,12 @@
#pragma once #pragma once
#include "shared/source/command_stream/stream_properties.h" #include "shared/source/command_stream/stream_properties.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "level_zero/core/source/builtin/builtin_functions_lib.h" #include "level_zero/core/source/builtin/builtin_functions_lib.h"
#include "level_zero/core/source/cmdlist/cmdlist_imp.h" #include "level_zero/core/source/cmdlist/cmdlist_imp.h"
#include "igfxfmid.h" #include "igfxfmid.h"
#include "pipe_control_args.h"
namespace NEO { namespace NEO {
enum class ImageType; enum class ImageType;

View File

@@ -16,6 +16,7 @@
#include "shared/source/helpers/heap_helper.h" #include "shared/source/helpers/heap_helper.h"
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/hw_info.h" #include "shared/source/helpers/hw_info.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/helpers/preamble.h" #include "shared/source/helpers/preamble.h"
#include "shared/source/helpers/register_offsets.h" #include "shared/source/helpers/register_offsets.h"
#include "shared/source/helpers/string.h" #include "shared/source/helpers/string.h"
@@ -38,8 +39,6 @@
#include "level_zero/core/source/image/image.h" #include "level_zero/core/source/image/image.h"
#include "level_zero/core/source/module/module.h" #include "level_zero/core/source/module/module.h"
#include "pipe_control_args.h"
#include <algorithm> #include <algorithm>
namespace L0 { namespace L0 {

View File

@@ -10,6 +10,7 @@
#include "shared/source/command_container/command_encoder.h" #include "shared/source/command_container/command_encoder.h"
#include "shared/source/command_stream/linear_stream.h" #include "shared/source/command_stream/linear_stream.h"
#include "shared/source/command_stream/preemption.h" #include "shared/source/command_stream/preemption.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/helpers/register_offsets.h" #include "shared/source/helpers/register_offsets.h"
#include "shared/source/helpers/simd_helper.h" #include "shared/source/helpers/simd_helper.h"
#include "shared/source/memory_manager/graphics_allocation.h" #include "shared/source/memory_manager/graphics_allocation.h"
@@ -20,8 +21,6 @@
#include "level_zero/core/source/kernel/kernel_imp.h" #include "level_zero/core/source/kernel/kernel_imp.h"
#include "pipe_control_args.h"
#include <algorithm> #include <algorithm>
namespace L0 { namespace L0 {

View File

@@ -18,6 +18,7 @@
#include "shared/source/device/device.h" #include "shared/source/device/device.h"
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/hw_info.h" #include "shared/source/helpers/hw_info.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/helpers/preamble.h" #include "shared/source/helpers/preamble.h"
#include "shared/source/memory_manager/memory_manager.h" #include "shared/source/memory_manager/memory_manager.h"
#include "shared/source/memory_manager/residency_container.h" #include "shared/source/memory_manager/residency_container.h"
@@ -35,8 +36,6 @@
#include "level_zero/core/source/fence/fence.h" #include "level_zero/core/source/fence/fence.h"
#include "level_zero/tools/source/metrics/metric.h" #include "level_zero/tools/source/metrics/metric.h"
#include "pipe_control_args.h"
#include <limits> #include <limits>
#include <thread> #include <thread>

View File

@@ -10,13 +10,13 @@
#include "shared/source/gmm_helper/gmm_helper.h" #include "shared/source/gmm_helper/gmm_helper.h"
#include "shared/source/helpers/api_specific_config.h" #include "shared/source/helpers/api_specific_config.h"
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/helpers/state_base_address.h" #include "shared/source/helpers/state_base_address.h"
#include "shared/source/os_interface/hw_info_config.h" #include "shared/source/os_interface/hw_info_config.h"
#include "level_zero/core/source/cmdqueue/cmdqueue_hw.h" #include "level_zero/core/source/cmdqueue/cmdqueue_hw.h"
#include "igfxfmid.h" #include "igfxfmid.h"
#include "pipe_control_args.h"
namespace L0 { namespace L0 {

View File

@@ -5,7 +5,7 @@
* *
*/ */
#include "pipe_control_args.h" #include "shared/source/helpers/pipe_control_args.h"
namespace L0 { namespace L0 {

View File

@@ -6,11 +6,10 @@
*/ */
#include "shared/source/helpers/cache_flush.inl" #include "shared/source/helpers/cache_flush.inl"
#include "shared/source/helpers/pipe_control_args.h"
#include "level_zero/core/source/cmdlist/cmdlist_hw.h" #include "level_zero/core/source/cmdlist/cmdlist_hw.h"
#include "pipe_control_args.h"
namespace L0 { namespace L0 {
template <GFXCORE_FAMILY gfxCoreFamily> template <GFXCORE_FAMILY gfxCoreFamily>

View File

@@ -9,11 +9,10 @@
#include "shared/source/gen9/hw_cmds.h" #include "shared/source/gen9/hw_cmds.h"
#include "shared/source/gen9/hw_info.h" #include "shared/source/gen9/hw_info.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "level_zero/core/source/cmdlist/cmdlist_hw.h" #include "level_zero/core/source/cmdlist/cmdlist_hw.h"
#include "pipe_control_args.h"
namespace L0 { namespace L0 {
template struct CommandListCoreFamily<IGFX_GEN9_CORE>; template struct CommandListCoreFamily<IGFX_GEN9_CORE>;

View File

@@ -8,6 +8,7 @@
#pragma once #pragma once
#include "shared/source/built_ins/built_ins.h" #include "shared/source/built_ins/built_ins.h"
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/memory_manager/graphics_allocation.h" #include "shared/source/memory_manager/graphics_allocation.h"
#include "opencl/source/built_ins/builtins_dispatch_builder.h" #include "opencl/source/built_ins/builtins_dispatch_builder.h"
@@ -15,8 +16,6 @@
#include "opencl/source/kernel/kernel_objects_for_aux_translation.h" #include "opencl/source/kernel/kernel_objects_for_aux_translation.h"
#include "opencl/source/mem_obj/buffer.h" #include "opencl/source/mem_obj/buffer.h"
#include "pipe_control_args.h"
#include <memory> #include <memory>
namespace NEO { namespace NEO {

View File

@@ -11,6 +11,7 @@
#include "shared/source/helpers/array_count.h" #include "shared/source/helpers/array_count.h"
#include "shared/source/helpers/engine_node_helper.h" #include "shared/source/helpers/engine_node_helper.h"
#include "shared/source/helpers/local_work_size.h" #include "shared/source/helpers/local_work_size.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/memory_manager/internal_allocation_storage.h" #include "shared/source/memory_manager/internal_allocation_storage.h"
#include "shared/source/memory_manager/memory_manager.h" #include "shared/source/memory_manager/memory_manager.h"
#include "shared/source/memory_manager/surface.h" #include "shared/source/memory_manager/surface.h"
@@ -42,8 +43,6 @@
#include "opencl/source/program/printf_handler.h" #include "opencl/source/program/printf_handler.h"
#include "opencl/source/utilities/cl_logger.h" #include "opencl/source/utilities/cl_logger.h"
#include "pipe_control_args.h"
#include <algorithm> #include <algorithm>
#include <new> #include <new>

View File

@@ -13,6 +13,7 @@
#include "shared/source/helpers/engine_node_helper.h" #include "shared/source/helpers/engine_node_helper.h"
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/local_id_gen.h" #include "shared/source/helpers/local_id_gen.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/indirect_heap/indirect_heap.h" #include "shared/source/indirect_heap/indirect_heap.h"
#include "shared/source/memory_manager/graphics_allocation.h" #include "shared/source/memory_manager/graphics_allocation.h"
#include "shared/source/os_interface/os_context.h" #include "shared/source/os_interface/os_context.h"
@@ -28,8 +29,6 @@
#include "opencl/source/helpers/queue_helpers.h" #include "opencl/source/helpers/queue_helpers.h"
#include "opencl/source/mem_obj/mem_obj.h" #include "opencl/source/mem_obj/mem_obj.h"
#include "pipe_control_args.h"
#include <algorithm> #include <algorithm>
#include <cmath> #include <cmath>

View File

@@ -8,13 +8,12 @@
#pragma once #pragma once
#include "shared/source/execution_environment/root_device_environment.h" #include "shared/source/execution_environment/root_device_environment.h"
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/helpers/simd_helper.h" #include "shared/source/helpers/simd_helper.h"
#include "opencl/source/cl_device/cl_device.h" #include "opencl/source/cl_device/cl_device.h"
#include "opencl/source/command_queue/gpgpu_walker_base.inl" #include "opencl/source/command_queue/gpgpu_walker_base.inl"
#include "pipe_control_args.h"
namespace NEO { namespace NEO {
template <typename GfxFamily> template <typename GfxFamily>

View File

@@ -9,6 +9,7 @@
#include "shared/source/command_container/command_encoder.h" #include "shared/source/command_container/command_encoder.h"
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/pause_on_gpu_properties.h" #include "shared/source/helpers/pause_on_gpu_properties.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/memory_manager/internal_allocation_storage.h" #include "shared/source/memory_manager/internal_allocation_storage.h"
#include "opencl/source/command_queue/gpgpu_walker.h" #include "opencl/source/command_queue/gpgpu_walker.h"
@@ -18,8 +19,6 @@
#include "opencl/source/helpers/task_information.h" #include "opencl/source/helpers/task_information.h"
#include "opencl/source/mem_obj/buffer.h" #include "opencl/source/mem_obj/buffer.h"
#include "pipe_control_args.h"
namespace NEO { namespace NEO {
template <typename GfxFamily> template <typename GfxFamily>

View File

@@ -7,6 +7,7 @@
#pragma once #pragma once
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/helpers/preamble.h" #include "shared/source/helpers/preamble.h"
#include "shared/source/helpers/string.h" #include "shared/source/helpers/string.h"
#include "shared/source/memory_manager/memory_manager.h" #include "shared/source/memory_manager/memory_manager.h"
@@ -16,8 +17,6 @@
#include "opencl/source/device_queue/device_queue_hw.h" #include "opencl/source/device_queue/device_queue_hw.h"
#include "opencl/source/helpers/hardware_commands_helper.h" #include "opencl/source/helpers/hardware_commands_helper.h"
#include "pipe_control_args.h"
namespace NEO { namespace NEO {
template <typename GfxFamily> template <typename GfxFamily>
void DeviceQueueHw<GfxFamily>::allocateSlbBuffer() { void DeviceQueueHw<GfxFamily>::allocateSlbBuffer() {

View File

@@ -7,13 +7,12 @@
#pragma once #pragma once
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "opencl/source/command_queue/command_queue.h" #include "opencl/source/command_queue/command_queue.h"
#include "opencl/source/helpers/hardware_commands_helper.h" #include "opencl/source/helpers/hardware_commands_helper.h"
#include "opencl/source/kernel/kernel.h" #include "opencl/source/kernel/kernel.h"
#include "pipe_control_args.h"
namespace NEO { namespace NEO {
template <typename GfxFamily> template <typename GfxFamily>

View File

@@ -10,6 +10,7 @@
#include "shared/source/helpers/flat_batch_buffer_helper.h" #include "shared/source/helpers/flat_batch_buffer_helper.h"
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/l3_range.h" #include "shared/source/helpers/l3_range.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/helpers/string.h" #include "shared/source/helpers/string.h"
#include "opencl/source/cl_device/cl_device.h" #include "opencl/source/cl_device/cl_device.h"
@@ -17,8 +18,6 @@
#include "opencl/source/helpers/hardware_commands_helper.h" #include "opencl/source/helpers/hardware_commands_helper.h"
#include "opencl/source/kernel/kernel.h" #include "opencl/source/kernel/kernel.h"
#include "pipe_control_args.h"
namespace NEO { namespace NEO {
template <typename GfxFamily> template <typename GfxFamily>

View File

@@ -11,6 +11,7 @@
#include "shared/source/gmm_helper/gmm_helper.h" #include "shared/source/gmm_helper/gmm_helper.h"
#include "shared/source/gmm_helper/resource_info.h" #include "shared/source/gmm_helper/resource_info.h"
#include "shared/source/helpers/aligned_memory.h" #include "shared/source/helpers/aligned_memory.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/helpers/string.h" #include "shared/source/helpers/string.h"
#include "shared/source/memory_manager/graphics_allocation.h" #include "shared/source/memory_manager/graphics_allocation.h"
#include "shared/source/os_interface/hw_info_config.h" #include "shared/source/os_interface/hw_info_config.h"
@@ -29,8 +30,6 @@
#include "opencl/test/unit_test/mocks/mock_buffer.h" #include "opencl/test/unit_test/mocks/mock_buffer.h"
#include "opencl/test/unit_test/mocks/mock_context.h" #include "opencl/test/unit_test/mocks/mock_context.h"
#include "pipe_control_args.h"
#include <chrono> #include <chrono>
#include <iostream> #include <iostream>
#include <numeric> #include <numeric>

View File

@@ -6,6 +6,7 @@
*/ */
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/os_interface/hw_info_config.h" #include "shared/source/os_interface/hw_info_config.h"
#include "shared/test/common/cmd_parse/gen_cmd_parse.h" #include "shared/test/common/cmd_parse/gen_cmd_parse.h"
#include "shared/test/common/helpers/debug_manager_state_restore.h" #include "shared/test/common/helpers/debug_manager_state_restore.h"
@@ -15,8 +16,6 @@
#include "opencl/test/unit_test/fixtures/cl_device_fixture.h" #include "opencl/test/unit_test/fixtures/cl_device_fixture.h"
#include "pipe_control_args.h"
using PipeControlHelperTestsDg2AndLater = ::testing::Test; using PipeControlHelperTestsDg2AndLater = ::testing::Test;
using HwHelperTestsDg2AndLater = Test<ClDeviceFixture>; using HwHelperTestsDg2AndLater = Test<ClDeviceFixture>;

View File

@@ -8,6 +8,7 @@
#include "shared/source/command_container/command_encoder.h" #include "shared/source/command_container/command_encoder.h"
#include "shared/source/gmm_helper/gmm_helper.h" #include "shared/source/gmm_helper/gmm_helper.h"
#include "shared/source/helpers/engine_node_helper.h" #include "shared/source/helpers/engine_node_helper.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/os_interface/hw_info_config.h" #include "shared/source/os_interface/hw_info_config.h"
#include "shared/test/common/cmd_parse/gen_cmd_parse.h" #include "shared/test/common/cmd_parse/gen_cmd_parse.h"
#include "shared/test/common/helpers/debug_manager_state_restore.h" #include "shared/test/common/helpers/debug_manager_state_restore.h"
@@ -22,7 +23,6 @@
#include "opencl/test/unit_test/mocks/mock_context.h" #include "opencl/test/unit_test/mocks/mock_context.h"
#include "engine_node.h" #include "engine_node.h"
#include "pipe_control_args.h"
using HwHelperTestXeHPAndLater = Test<ClDeviceFixture>; using HwHelperTestXeHPAndLater = Test<ClDeviceFixture>;

View File

@@ -13,13 +13,12 @@
#include "shared/source/gmm_helper/gmm_helper.h" #include "shared/source/gmm_helper/gmm_helper.h"
#include "shared/source/helpers/api_specific_config.h" #include "shared/source/helpers/api_specific_config.h"
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/helpers/simd_helper.h" #include "shared/source/helpers/simd_helper.h"
#include "shared/source/helpers/state_base_address.h" #include "shared/source/helpers/state_base_address.h"
#include "shared/source/kernel/dispatch_kernel_encoder_interface.h" #include "shared/source/kernel/dispatch_kernel_encoder_interface.h"
#include "shared/source/kernel/implicit_args.h" #include "shared/source/kernel/implicit_args.h"
#include "pipe_control_args.h"
#include <algorithm> #include <algorithm>
namespace NEO { namespace NEO {

View File

@@ -19,6 +19,7 @@
#include "shared/source/helpers/basic_math.h" #include "shared/source/helpers/basic_math.h"
#include "shared/source/helpers/constants.h" #include "shared/source/helpers/constants.h"
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/helpers/pipeline_select_helper.h" #include "shared/source/helpers/pipeline_select_helper.h"
#include "shared/source/helpers/ray_tracing_helper.h" #include "shared/source/helpers/ray_tracing_helper.h"
#include "shared/source/helpers/simd_helper.h" #include "shared/source/helpers/simd_helper.h"
@@ -28,8 +29,6 @@
#include "shared/source/kernel/kernel_descriptor.h" #include "shared/source/kernel/kernel_descriptor.h"
#include "shared/source/os_interface/hw_info_config.h" #include "shared/source/os_interface/hw_info_config.h"
#include "pipe_control_args.h"
#include <algorithm> #include <algorithm>
namespace NEO { namespace NEO {

View File

@@ -13,10 +13,9 @@
#include "shared/source/helpers/basic_math.h" #include "shared/source/helpers/basic_math.h"
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/hw_info.h" #include "shared/source/helpers/hw_info.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/helpers/ptr_math.h" #include "shared/source/helpers/ptr_math.h"
#include "pipe_control_args.h"
#include <cassert> #include <cassert>
#include <optional> #include <optional>

View File

@@ -19,13 +19,12 @@
#include "shared/source/helpers/completion_stamp.h" #include "shared/source/helpers/completion_stamp.h"
#include "shared/source/helpers/flat_batch_buffer_helper.h" #include "shared/source/helpers/flat_batch_buffer_helper.h"
#include "shared/source/helpers/options.h" #include "shared/source/helpers/options.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/indirect_heap/indirect_heap.h" #include "shared/source/indirect_heap/indirect_heap.h"
#include "shared/source/kernel/grf_config.h" #include "shared/source/kernel/grf_config.h"
#include "shared/source/os_interface/os_thread.h" #include "shared/source/os_interface/os_thread.h"
#include "shared/source/utilities/spinlock.h" #include "shared/source/utilities/spinlock.h"
#include "pipe_control_args.h"
#include <cstddef> #include <cstddef>
#include <cstdint> #include <cstdint>

View File

@@ -8,11 +8,10 @@
#include "shared/source/command_container/command_encoder.h" #include "shared/source/command_container/command_encoder.h"
#include "shared/source/command_stream/command_stream_receiver_hw.h" #include "shared/source/command_stream/command_stream_receiver_hw.h"
#include "shared/source/device/device.h" #include "shared/source/device/device.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/helpers/state_compute_mode_helper.h" #include "shared/source/helpers/state_compute_mode_helper.h"
#include "shared/source/os_interface/hw_info_config.h" #include "shared/source/os_interface/hw_info_config.h"
#include "pipe_control_args.h"
namespace NEO { namespace NEO {
template <typename GfxFamily> template <typename GfxFamily>
void CommandStreamReceiverHw<GfxFamily>::programComputeMode(LinearStream &stream, DispatchFlags &dispatchFlags, const HardwareInfo &hwInfo) { void CommandStreamReceiverHw<GfxFamily>::programComputeMode(LinearStream &stream, DispatchFlags &dispatchFlags, const HardwareInfo &hwInfo) {

View File

@@ -10,10 +10,9 @@
#include "shared/source/command_stream/linear_stream.h" #include "shared/source/command_stream/linear_stream.h"
#include "shared/source/execution_environment/root_device_environment.h" #include "shared/source/execution_environment/root_device_environment.h"
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/memory_manager/graphics_allocation.h" #include "shared/source/memory_manager/graphics_allocation.h"
#include "pipe_control_args.h"
namespace NEO { namespace NEO {
template <typename GfxFamily> template <typename GfxFamily>

View File

@@ -9,11 +9,10 @@
#include "shared/source/command_stream/preemption.h" #include "shared/source/command_stream/preemption.h"
#include "shared/source/device/device.h" #include "shared/source/device/device.h"
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/helpers/preamble.h" #include "shared/source/helpers/preamble.h"
#include "shared/source/memory_manager/graphics_allocation.h" #include "shared/source/memory_manager/graphics_allocation.h"
#include "pipe_control_args.h"
namespace NEO { namespace NEO {
template <typename GfxFamily> template <typename GfxFamily>

View File

@@ -9,8 +9,7 @@
#include "shared/source/command_stream/preemption.h" #include "shared/source/command_stream/preemption.h"
#include "shared/source/direct_submission/dispatchers/render_dispatcher.h" #include "shared/source/direct_submission/dispatchers/render_dispatcher.h"
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "pipe_control_args.h"
namespace NEO { namespace NEO {

View File

@@ -7,10 +7,10 @@
#include "shared/source/command_stream/csr_definitions.h" #include "shared/source/command_stream/csr_definitions.h"
#include "shared/source/helpers/engine_node_helper.h" #include "shared/source/helpers/engine_node_helper.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/helpers/preamble_bdw_and_later.inl" #include "shared/source/helpers/preamble_bdw_and_later.inl"
#include "shared/source/os_interface/hw_info_config.h" #include "shared/source/os_interface/hw_info_config.h"
#include "pipe_control_args.h"
#include "reg_configs_common.h" #include "reg_configs_common.h"
namespace NEO { namespace NEO {

View File

@@ -94,6 +94,7 @@ set(NEO_CORE_HELPERS
${CMAKE_CURRENT_SOURCE_DIR}/pause_on_gpu_properties.h ${CMAKE_CURRENT_SOURCE_DIR}/pause_on_gpu_properties.h
${CMAKE_CURRENT_SOURCE_DIR}/per_thread_data.cpp ${CMAKE_CURRENT_SOURCE_DIR}/per_thread_data.cpp
${CMAKE_CURRENT_SOURCE_DIR}/per_thread_data.h ${CMAKE_CURRENT_SOURCE_DIR}/per_thread_data.h
${CMAKE_CURRENT_SOURCE_DIR}/pipe_control_args.h
${CMAKE_CURRENT_SOURCE_DIR}/pipeline_select_args.h ${CMAKE_CURRENT_SOURCE_DIR}/pipeline_select_args.h
${CMAKE_CURRENT_SOURCE_DIR}/pipeline_select_helper.h ${CMAKE_CURRENT_SOURCE_DIR}/pipeline_select_helper.h
${CMAKE_CURRENT_SOURCE_DIR}/populate_factory.h ${CMAKE_CURRENT_SOURCE_DIR}/populate_factory.h
@@ -128,8 +129,6 @@ set(NEO_CORE_HELPERS
${CMAKE_CURRENT_SOURCE_DIR}/definitions${BRANCH_DIR_SUFFIX}hw_cmds.h ${CMAKE_CURRENT_SOURCE_DIR}/definitions${BRANCH_DIR_SUFFIX}hw_cmds.h
${CMAKE_CURRENT_SOURCE_DIR}/definitions/engine_group_types.h ${CMAKE_CURRENT_SOURCE_DIR}/definitions/engine_group_types.h
${CMAKE_CURRENT_SOURCE_DIR}/definitions/mi_flush_args.h ${CMAKE_CURRENT_SOURCE_DIR}/definitions/mi_flush_args.h
${CMAKE_CURRENT_SOURCE_DIR}/definitions/pipe_control_args_base.h
${CMAKE_CURRENT_SOURCE_DIR}/definitions${BRANCH_DIR_SUFFIX}pipe_control_args.h
) )
if(SUPPORT_XEHP_AND_LATER) if(SUPPORT_XEHP_AND_LATER)

View File

@@ -1,17 +0,0 @@
/*
* Copyright (C) 2020-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/helpers/definitions/pipe_control_args_base.h"
namespace NEO {
struct HardwareInfo;
struct PipeControlArgs : PipeControlArgsBase {
PipeControlArgs() = default;
};
} // namespace NEO

View File

@@ -15,6 +15,7 @@
#include "shared/source/helpers/constants.h" #include "shared/source/helpers/constants.h"
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/hw_info.h" #include "shared/source/helpers/hw_info.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/helpers/preamble.h" #include "shared/source/helpers/preamble.h"
#include "shared/source/helpers/timestamp_packet.h" #include "shared/source/helpers/timestamp_packet.h"
#include "shared/source/memory_manager/allocation_properties.h" #include "shared/source/memory_manager/allocation_properties.h"
@@ -23,8 +24,6 @@
#include "shared/source/os_interface/os_interface.h" #include "shared/source/os_interface/os_interface.h"
#include "shared/source/utilities/tag_allocator.h" #include "shared/source/utilities/tag_allocator.h"
#include "pipe_control_args.h"
namespace NEO { namespace NEO {
template <typename Family> template <typename Family>

View File

@@ -7,8 +7,7 @@
#include "shared/source/command_container/command_encoder.h" #include "shared/source/command_container/command_encoder.h"
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "pipe_control_args.h"
namespace NEO { namespace NEO {

View File

@@ -9,11 +9,11 @@
#include "shared/source/command_container/command_encoder.h" #include "shared/source/command_container/command_encoder.h"
#include "shared/source/gmm_helper/gmm_helper.h" #include "shared/source/gmm_helper/gmm_helper.h"
#include "shared/source/helpers/heap_assigner.h" #include "shared/source/helpers/heap_assigner.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/kernel/grf_config.h" #include "shared/source/kernel/grf_config.h"
#include "shared/source/memory_manager/memory_manager.h" #include "shared/source/memory_manager/memory_manager.h"
#include "engine_node.h" #include "engine_node.h"
#include "pipe_control_args.h"
namespace NEO { namespace NEO {

View File

@@ -6,8 +6,12 @@
*/ */
#pragma once #pragma once
namespace NEO { namespace NEO {
struct PipeControlArgsBase {
struct PipeControlArgs {
PipeControlArgs() = default;
bool dcFlushEnable = false; bool dcFlushEnable = false;
bool renderTargetCacheFlushEnable = false; bool renderTargetCacheFlushEnable = false;
bool instructionCacheInvalidateEnable = false; bool instructionCacheInvalidateEnable = false;
@@ -24,8 +28,6 @@ struct PipeControlArgsBase {
bool workloadPartitionOffset = false; bool workloadPartitionOffset = false;
bool amfsFlushEnable = false; bool amfsFlushEnable = false;
bool unTypedDataPortCacheFlush = false; bool unTypedDataPortCacheFlush = false;
protected:
PipeControlArgsBase() = default;
}; };
} // namespace NEO } // namespace NEO

View File

@@ -12,11 +12,10 @@
#include "shared/source/helpers/aux_translation.h" #include "shared/source/helpers/aux_translation.h"
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/non_copyable_or_moveable.h" #include "shared/source/helpers/non_copyable_or_moveable.h"
#include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/helpers/string.h" #include "shared/source/helpers/string.h"
#include "shared/source/utilities/tag_allocator.h" #include "shared/source/utilities/tag_allocator.h"
#include "pipe_control_args.h"
#include <cstdint> #include <cstdint>
#include <vector> #include <vector>