2020#include " shared/source/helpers/definitions/command_encoder_args.h"
2121#include " shared/source/helpers/gfx_core_helper.h"
2222#include " shared/source/helpers/hw_info.h"
23+ #include " shared/source/helpers/in_order_cmd_helpers.h"
2324#include " shared/source/helpers/kernel_helpers.h"
2425#include " shared/source/helpers/pipe_control_args.h"
2526#include " shared/source/helpers/preamble.h"
4647#include " level_zero/core/source/driver/driver_handle_imp.h"
4748#include " level_zero/core/source/event/event.h"
4849#include " level_zero/core/source/gfx_core_helpers/l0_gfx_core_helper.h"
49- #include " level_zero/core/source/helpers/in_order_cmd_helpers.h"
5050#include " level_zero/core/source/image/image.h"
5151#include " level_zero/core/source/kernel/kernel.h"
5252#include " level_zero/core/source/kernel/kernel_imp.h"
@@ -2408,7 +2408,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendSignalEvent(ze_event_han
24082408}
24092409
24102410template <GFXCORE_FAMILY gfxCoreFamily>
2411- void CommandListCoreFamily<gfxCoreFamily>::appendWaitOnInOrderDependency(std::shared_ptr<InOrderExecInfo> &inOrderExecInfo, uint64_t waitValue, uint32_t offset, bool relaxedOrderingAllowed, bool implicitDependency) {
2411+ void CommandListCoreFamily<gfxCoreFamily>::appendWaitOnInOrderDependency(std::shared_ptr<NEO:: InOrderExecInfo> &inOrderExecInfo, uint64_t waitValue, uint32_t offset, bool relaxedOrderingAllowed, bool implicitDependency) {
24122412 using COMPARE_OPERATION = typename GfxFamily::MI_SEMAPHORE_WAIT::COMPARE_OPERATION;
24132413
24142414 UNRECOVERABLE_IF (waitValue > static_cast <uint64_t >(std::numeric_limits<uint32_t >::max ()) && !isQwordInOrderCounter ());
@@ -2435,7 +2435,7 @@ void CommandListCoreFamily<gfxCoreFamily>::appendWaitOnInOrderDependency(std::sh
24352435 auto lri2 = NEO::LriHelper<GfxFamily>::program (commandContainer.getCommandStream (), RegisterOffsets::csGprR0 + 4 , getHighPart (waitValue), true );
24362436
24372437 if (inOrderExecInfo->isRegularCmdList ()) {
2438- addCmdForPatching ((implicitDependency ? nullptr : &inOrderExecInfo), lri1, lri2, waitValue, InOrderPatchCommandHelpers::PatchCmdType::Lri64b);
2438+ addCmdForPatching ((implicitDependency ? nullptr : &inOrderExecInfo), lri1, lri2, waitValue, NEO:: InOrderPatchCommandHelpers::PatchCmdType::Lri64b);
24392439 }
24402440 }
24412441
@@ -2445,7 +2445,7 @@ void CommandListCoreFamily<gfxCoreFamily>::appendWaitOnInOrderDependency(std::sh
24452445 false , true , isQwordInOrderCounter (), indirectMode);
24462446
24472447 if (inOrderExecInfo->isRegularCmdList () && !isQwordInOrderCounter ()) {
2448- addCmdForPatching ((implicitDependency ? nullptr : &inOrderExecInfo), semaphoreCommand, nullptr , waitValue, InOrderPatchCommandHelpers::PatchCmdType::Semaphore);
2448+ addCmdForPatching ((implicitDependency ? nullptr : &inOrderExecInfo), semaphoreCommand, nullptr , waitValue, NEO:: InOrderPatchCommandHelpers::PatchCmdType::Semaphore);
24492449 }
24502450 }
24512451
@@ -2564,7 +2564,7 @@ void CommandListCoreFamily<gfxCoreFamily>::appendSdiInOrderCounterSignalling(uin
25642564 NEO::EncodeStoreMemory<GfxFamily>::programStoreDataImm (miStoreCmd, gpuVa, getLowPart (signalValue), getHighPart (signalValue),
25652565 isQwordInOrderCounter (), (this ->partitionCount > 1 ));
25662566
2567- addCmdForPatching (nullptr , miStoreCmd, nullptr , signalValue, InOrderPatchCommandHelpers::PatchCmdType::Sdi);
2567+ addCmdForPatching (nullptr , miStoreCmd, nullptr , signalValue, NEO:: InOrderPatchCommandHelpers::PatchCmdType::Sdi);
25682568}
25692569
25702570template <GFXCORE_FAMILY gfxCoreFamily>
@@ -3640,7 +3640,7 @@ void CommandListCoreFamily<gfxCoreFamily>::appendWaitOnSingleEvent(Event *event,
36403640}
36413641
36423642template <GFXCORE_FAMILY gfxCoreFamily>
3643- void CommandListCoreFamily<gfxCoreFamily>::addCmdForPatching(std::shared_ptr<InOrderExecInfo> *externalInOrderExecInfo, void *cmd1, void *cmd2, uint64_t counterValue, InOrderPatchCommandHelpers::PatchCmdType patchCmdType) {
3643+ void CommandListCoreFamily<gfxCoreFamily>::addCmdForPatching(std::shared_ptr<NEO:: InOrderExecInfo> *externalInOrderExecInfo, void *cmd1, void *cmd2, uint64_t counterValue, NEO:: InOrderPatchCommandHelpers::PatchCmdType patchCmdType) {
36443644 if ((NEO::debugManager.flags .EnableInOrderRegularCmdListPatching .get () != 0 ) && (this ->cmdListType == TYPE_REGULAR)) {
36453645 this ->inOrderPatchCmds .emplace_back (externalInOrderExecInfo, cmd1, cmd2, counterValue, patchCmdType);
36463646 }
@@ -3649,7 +3649,7 @@ void CommandListCoreFamily<gfxCoreFamily>::addCmdForPatching(std::shared_ptr<InO
36493649template <GFXCORE_FAMILY gfxCoreFamily>
36503650void CommandListCoreFamily<gfxCoreFamily>::patchInOrderCmds() {
36513651 if (isInOrderExecutionEnabled ()) {
3652- auto implicitAppendCounter = InOrderPatchCommandHelpers::getAppendCounterValue (*inOrderExecInfo);
3652+ auto implicitAppendCounter = NEO:: InOrderPatchCommandHelpers::getAppendCounterValue (*inOrderExecInfo);
36533653
36543654 for (auto &cmd : inOrderPatchCmds) {
36553655 if (cmd.isExternalDependency () || (inOrderExecInfo->getRegularCmdListSubmissionCounter () > 1 )) {
0 commit comments