includes refactor

use gen specific hw_cmds instead of all-in-one

Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
Artur Harasimiuk
2022-07-07 23:55:53 +00:00
committed by Compute-Runtime-Automation
parent ee277114e0
commit 6cb44ae0d9
41 changed files with 58 additions and 35 deletions

View File

@ -12,8 +12,8 @@
#include "level_zero/core/source/cmdlist/cmdlist_hw_base.inl"
#include "level_zero/core/source/cmdlist/cmdlist_hw_immediate.h"
#include "level_zero/core/source/cmdlist/cmdlist_hw_immediate.inl"
#include "level_zero/core/source/gen12lp/definitions/cache_flush_gen12lp.inl"
#include "cache_flush_gen12lp.inl"
#include "cmdlist_extended.inl"
namespace L0 {

View File

@ -5,6 +5,7 @@
*
*/
#include "shared/source/gen12lp/hw_cmds_base.h"
#include "shared/source/helpers/cache_flush.inl"
#include "shared/source/helpers/l3_range.h"
#include "shared/test/common/cmd_parse/gen_cmd_parse.h"

View File

@ -5,10 +5,10 @@
*
*/
#include "shared/source/gen12lp/hw_cmds_base.h"
#include "shared/test/common/mocks/mock_timestamp_packet.h"
#include "shared/test/common/test_macros/hw_test.h"
#include "shared/test/common/test_macros/header/per_product_test_definitions.h"
#include "level_zero/core/source/driver/driver_handle_imp.h"
#include "level_zero/core/source/event/event.h"
#include "level_zero/core/test/unit_tests/fixtures/device_fixture.h"
#include "level_zero/core/test/unit_tests/mocks/mock_event.h"

View File

@ -1,10 +1,12 @@
/*
* Copyright (C) 2019-2021 Intel Corporation
* Copyright (C) 2019-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/gen11/hw_cmds_base.h"
#include "opencl/source/gtpin/gtpin_hw_helper.h"
#include "opencl/source/gtpin/gtpin_hw_helper.inl"
#include "opencl/source/gtpin/gtpin_hw_helper_bdw_and_later.inl"

View File

@ -1,10 +1,12 @@
/*
* Copyright (C) 2019-2021 Intel Corporation
* Copyright (C) 2019-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/gen12lp/hw_cmds_base.h"
#include "opencl/source/gtpin/gtpin_hw_helper.h"
#include "opencl/source/gtpin/gtpin_hw_helper.inl"
#include "opencl/source/gtpin/gtpin_hw_helper_bdw_and_later.inl"

View File

@ -1,10 +1,12 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/gen8/hw_cmds_base.h"
#include "opencl/source/gtpin/gtpin_hw_helper.h"
#include "opencl/source/gtpin/gtpin_hw_helper.inl"
#include "opencl/source/gtpin/gtpin_hw_helper_bdw_and_later.inl"

View File

@ -1,10 +1,12 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/gen9/hw_cmds_base.h"
#include "opencl/source/gtpin/gtpin_hw_helper.h"
#include "opencl/source/gtpin/gtpin_hw_helper.inl"
#include "opencl/source/gtpin/gtpin_hw_helper_bdw_and_later.inl"

View File

@ -10,8 +10,6 @@
#include "opencl/source/gtpin/gtpin_hw_helper.h"
#include "opencl/source/kernel/kernel.h"
#include "hw_cmds.h"
namespace NEO {
template <typename GfxFamily>

View File

@ -1,10 +1,12 @@
/*
* Copyright (C) 2021 Intel Corporation
* Copyright (C) 2021-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/xe_hp_core/hw_cmds_base.h"
#include "opencl/source/gtpin/gtpin_hw_helper.h"
#include "opencl/source/gtpin/gtpin_hw_helper.inl"
#include "opencl/source/gtpin/gtpin_hw_helper_xehp_and_later.inl"

View File

@ -9,6 +9,7 @@
#include "opencl/source/gtpin/gtpin_hw_helper.inl"
#include "opencl/source/gtpin/gtpin_hw_helper_xehp_and_later.inl"
#include "hw_cmds_xe_hpc_core_base.h"
#include "ocl_igc_shared/gtpin/gtpin_ocl_interface.h"
namespace NEO {

View File

@ -9,6 +9,7 @@
#include "opencl/source/gtpin/gtpin_hw_helper.inl"
#include "opencl/source/gtpin/gtpin_hw_helper_xehp_and_later.inl"
#include "hw_cmds_xe_hpg_core_base.h"
#include "ocl_igc_shared/gtpin/gtpin_ocl_interface.h"
namespace NEO {

View File

@ -8,8 +8,6 @@
#include "shared/source/command_stream/command_stream_receiver_hw_base.inl"
#include "shared/source/helpers/address_patch.h"
#include "hw_cmds.h"
namespace NEO {
template <typename GfxFamily>

View File

@ -11,8 +11,6 @@
#include "shared/source/debugger/debugger_l0.h"
#include "shared/source/gmm_helper/gmm_helper.h"
#include "hw_cmds.h"
namespace NEO {
template <typename GfxFamily>
@ -134,4 +132,4 @@ void DebuggerL0Hw<GfxFamily>::programSbaAddressLoad(NEO::LinearStream &cmdStream
true);
}
} // namespace NEO
} // namespace NEO

View File

@ -9,6 +9,7 @@
#include "shared/source/command_stream/command_stream_receiver_hw_bdw_and_later.inl"
#include "shared/source/command_stream/device_command_stream.h"
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/gen11/hw_cmds_base.h"
#include "shared/source/gen11/reg_configs.h"
#include "shared/source/helpers/blit_commands_helper_bdw_and_later.inl"
#include "shared/source/helpers/populate_factory.h"

View File

@ -7,6 +7,7 @@
#include "shared/source/debugger/debugger_l0.inl"
#include "shared/source/debugger/debugger_l0_base.inl"
#include "shared/source/gen11/hw_cmds_base.h"
#include "shared/source/helpers/populate_factory.h"
namespace NEO {
@ -20,4 +21,4 @@ void populateFactoryTable<DebuggerL0Hw<GfxFamily>>() {
debuggerL0Factory[coreFamily] = DebuggerL0Hw<GfxFamily>::allocate;
}
template class DebuggerL0Hw<GfxFamily>;
} // namespace NEO
} // namespace NEO

View File

@ -6,6 +6,7 @@
*/
#include "shared/source/command_stream/csr_definitions.h"
#include "shared/source/gen11/hw_cmds_base.h"
#include "shared/source/helpers/pipeline_select_helper.h"
#include "shared/source/helpers/preamble_bdw_and_later.inl"

View File

@ -1,10 +1,11 @@
/*
* Copyright (C) 2019-2021 Intel Corporation
* Copyright (C) 2019-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/gen11/hw_cmds_base.h"
#include "shared/source/helpers/state_base_address.h"
#include "shared/source/helpers/state_base_address_bdw_and_later.inl"
#include "shared/source/helpers/state_base_address_icllp_and_later.inl"

View File

@ -7,6 +7,7 @@
#include "shared/source/debugger/debugger_l0.inl"
#include "shared/source/debugger/debugger_l0_tgllp_and_later.inl"
#include "shared/source/gen12lp/hw_cmds_base.h"
#include "shared/source/helpers/populate_factory.h"
namespace NEO {
@ -21,4 +22,4 @@ void populateFactoryTable<DebuggerL0Hw<Family>>() {
debuggerL0Factory[coreFamily] = DebuggerL0Hw<Family>::allocate;
}
template class DebuggerL0Hw<Family>;
} // namespace NEO
} // namespace NEO

View File

@ -6,6 +6,7 @@
*/
#include "shared/source/command_stream/csr_definitions.h"
#include "shared/source/gen12lp/hw_cmds_base.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"

View File

@ -1,10 +1,11 @@
/*
* Copyright (C) 2019-2021 Intel Corporation
* Copyright (C) 2019-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/gen12lp/hw_cmds_base.h"
#include "shared/source/helpers/state_base_address.h"
#include "shared/source/helpers/state_base_address_bdw_and_later.inl"
#include "shared/source/helpers/state_base_address_icllp_and_later.inl"

View File

@ -7,7 +7,7 @@
#include "shared/source/command_stream/command_stream_receiver_hw_bdw_and_later.inl"
#include "shared/source/command_stream/device_command_stream.h"
#include "shared/source/gen8/hw_cmds.h"
#include "shared/source/gen8/hw_cmds_base.h"
#include "shared/source/helpers/blit_commands_helper_bdw_and_later.inl"
#include "shared/source/helpers/populate_factory.h"

View File

@ -7,6 +7,7 @@
#include "shared/source/debugger/debugger_l0.inl"
#include "shared/source/debugger/debugger_l0_base.inl"
#include "shared/source/gen8/hw_cmds_base.h"
#include "shared/source/helpers/populate_factory.h"
namespace NEO {
@ -21,4 +22,4 @@ void populateFactoryTable<DebuggerL0Hw<GfxFamily>>() {
debuggerL0Factory[coreFamily] = DebuggerL0Hw<GfxFamily>::allocate;
}
template class DebuggerL0Hw<GfxFamily>;
} // namespace NEO
} // namespace NEO

View File

@ -5,6 +5,7 @@
*
*/
#include "shared/source/gen8/hw_cmds_base.h"
#include "shared/source/helpers/preamble_bdw_and_later.inl"
namespace NEO {

View File

@ -5,6 +5,7 @@
*
*/
#include "shared/source/gen8/hw_cmds_base.h"
#include "shared/source/helpers/state_base_address.h"
#include "shared/source/helpers/state_base_address_bdw.inl"
#include "shared/source/helpers/state_base_address_bdw_and_later.inl"

View File

@ -7,7 +7,7 @@
#include "shared/source/command_stream/command_stream_receiver_hw_bdw_and_later.inl"
#include "shared/source/command_stream/device_command_stream.h"
#include "shared/source/gen9/hw_cmds.h"
#include "shared/source/gen9/hw_cmds_base.h"
#include "shared/source/helpers/blit_commands_helper_bdw_and_later.inl"
#include "shared/source/helpers/populate_factory.h"

View File

@ -7,6 +7,7 @@
#include "shared/source/debugger/debugger_l0.inl"
#include "shared/source/debugger/debugger_l0_base.inl"
#include "shared/source/gen9/hw_cmds_base.h"
#include "shared/source/helpers/populate_factory.h"
namespace NEO {
@ -21,4 +22,4 @@ void populateFactoryTable<DebuggerL0Hw<GfxFamily>>() {
debuggerL0Factory[coreFamily] = DebuggerL0Hw<GfxFamily>::allocate;
}
template class DebuggerL0Hw<GfxFamily>;
} // namespace NEO
} // namespace NEO

View File

@ -6,6 +6,7 @@
*/
#include "shared/source/command_stream/csr_definitions.h"
#include "shared/source/gen9/hw_cmds_base.h"
#include "shared/source/helpers/preamble_bdw_and_later.inl"
namespace NEO {

View File

@ -1,10 +1,11 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/gen9/hw_cmds_base.h"
#include "shared/source/helpers/state_base_address.h"
#include "shared/source/helpers/state_base_address_bdw_and_later.inl"
#include "shared/source/helpers/state_base_address_skl.inl"

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2021 Intel Corporation
* Copyright (C) 2021-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -10,8 +10,6 @@
#include "shared/source/helpers/l3_range.h"
#include "shared/source/utilities/range.h"
#include "hw_cmds.h"
namespace NEO {
template <typename GfxFamily>

View File

@ -13,7 +13,6 @@
#include "shared/source/helpers/preamble.h"
#include "shared/source/helpers/register_offsets.h"
#include "hw_cmds.h"
#include "reg_configs_common.h"
#include <cstddef>

View File

@ -14,8 +14,6 @@
#include "shared/source/indirect_heap/indirect_heap.h"
#include "shared/source/os_interface/hw_info_config.h"
#include "hw_cmds.h"
namespace NEO {
template <typename GfxFamily>
void StateBaseAddressHelper<GfxFamily>::programStateBaseAddress(

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -14,7 +14,6 @@
#include "shared/source/helpers/api_specific_config.h"
#include "shared/source/os_interface/windows/wddm_device_command_stream.h"
#include "hw_cmds.h"
#pragma warning(pop)
namespace NEO {

View File

@ -22,7 +22,6 @@
#include "shared/source/os_interface/windows/wddm/wddm_residency_logger.h"
#include "shared/source/os_interface/windows/wddm_device_command_stream.h"
#include "hw_cmds.h"
#pragma warning(pop)
#include "shared/source/os_interface/windows/gdi_interface.h"

View File

@ -8,6 +8,7 @@
#include "shared/source/debugger/debugger_l0.inl"
#include "shared/source/debugger/debugger_l0_tgllp_and_later.inl"
#include "shared/source/helpers/populate_factory.h"
#include "shared/source/xe_hp_core/hw_cmds_base.h"
namespace NEO {

View File

@ -6,6 +6,7 @@
*/
#include "shared/source/helpers/state_base_address_xehp_and_later.inl"
#include "shared/source/xe_hp_core/hw_cmds_base.h"
namespace NEO {

View File

@ -8,6 +8,7 @@
#include "shared/source/debugger/debugger_l0.inl"
#include "shared/source/debugger/debugger_l0_tgllp_and_later.inl"
#include "shared/source/helpers/populate_factory.h"
#include "shared/source/xe_hpc_core/hw_cmds_xe_hpc_core_base.h"
namespace NEO {
@ -21,4 +22,4 @@ void populateFactoryTable<DebuggerL0Hw<Family>>() {
debuggerL0Factory[coreFamily] = DebuggerL0Hw<Family>::allocate;
}
template class DebuggerL0Hw<Family>;
} // namespace NEO
} // namespace NEO

View File

@ -5,6 +5,8 @@
*
*/
#include "shared/source/xe_hpc_core/hw_cmds_xe_hpc_core_base.h"
namespace NEO {
struct XE_HPC_COREFamily;
using Family = XE_HPC_COREFamily;

View File

@ -6,6 +6,7 @@
*/
#include "shared/source/helpers/state_base_address_xehp_and_later.inl"
#include "shared/source/xe_hpc_core/hw_cmds_xe_hpc_core_base.h"
namespace NEO {
#include "shared/source/helpers/state_base_address_xe_hpg_core_and_later.inl"

View File

@ -8,6 +8,7 @@
#include "shared/source/debugger/debugger_l0.inl"
#include "shared/source/debugger/debugger_l0_tgllp_and_later.inl"
#include "shared/source/helpers/populate_factory.h"
#include "shared/source/xe_hpg_core/hw_cmds_xe_hpg_core_base.h"
namespace NEO {
@ -21,4 +22,4 @@ void populateFactoryTable<DebuggerL0Hw<GfxFamily>>() {
debuggerL0Factory[coreFamily] = DebuggerL0Hw<GfxFamily>::allocate;
}
template class DebuggerL0Hw<GfxFamily>;
} // namespace NEO
} // namespace NEO

View File

@ -5,6 +5,8 @@
*
*/
#include "shared/source/xe_hpg_core/hw_cmds_xe_hpg_core_base.h"
namespace NEO {
struct XE_HPG_COREFamily;
using Family = XE_HPG_COREFamily;

View File

@ -6,6 +6,7 @@
*/
#include "shared/source/helpers/state_base_address_xehp_and_later.inl"
#include "shared/source/xe_hpg_core/hw_cmds_xe_hpg_core_base.h"
namespace NEO {
#include "shared/source/helpers/state_base_address_xe_hpg_core_and_later.inl"