20
20
#include " shared/source/helpers/definitions/command_encoder_args.h"
21
21
#include " shared/source/helpers/gfx_core_helper.h"
22
22
#include " shared/source/helpers/hw_info.h"
23
+ #include " shared/source/helpers/in_order_cmd_helpers.h"
23
24
#include " shared/source/helpers/kernel_helpers.h"
24
25
#include " shared/source/helpers/pipe_control_args.h"
25
26
#include " shared/source/helpers/preamble.h"
46
47
#include " level_zero/core/source/driver/driver_handle_imp.h"
47
48
#include " level_zero/core/source/event/event.h"
48
49
#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"
50
50
#include " level_zero/core/source/image/image.h"
51
51
#include " level_zero/core/source/kernel/kernel.h"
52
52
#include " level_zero/core/source/kernel/kernel_imp.h"
@@ -2408,7 +2408,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendSignalEvent(ze_event_han
2408
2408
}
2409
2409
2410
2410
template <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) {
2412
2412
using COMPARE_OPERATION = typename GfxFamily::MI_SEMAPHORE_WAIT::COMPARE_OPERATION;
2413
2413
2414
2414
UNRECOVERABLE_IF (waitValue > static_cast <uint64_t >(std::numeric_limits<uint32_t >::max ()) && !isQwordInOrderCounter ());
@@ -2435,7 +2435,7 @@ void CommandListCoreFamily<gfxCoreFamily>::appendWaitOnInOrderDependency(std::sh
2435
2435
auto lri2 = NEO::LriHelper<GfxFamily>::program (commandContainer.getCommandStream (), RegisterOffsets::csGprR0 + 4 , getHighPart (waitValue), true );
2436
2436
2437
2437
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);
2439
2439
}
2440
2440
}
2441
2441
@@ -2445,7 +2445,7 @@ void CommandListCoreFamily<gfxCoreFamily>::appendWaitOnInOrderDependency(std::sh
2445
2445
false , true , isQwordInOrderCounter (), indirectMode);
2446
2446
2447
2447
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);
2449
2449
}
2450
2450
}
2451
2451
@@ -2564,7 +2564,7 @@ void CommandListCoreFamily<gfxCoreFamily>::appendSdiInOrderCounterSignalling(uin
2564
2564
NEO::EncodeStoreMemory<GfxFamily>::programStoreDataImm (miStoreCmd, gpuVa, getLowPart (signalValue), getHighPart (signalValue),
2565
2565
isQwordInOrderCounter (), (this ->partitionCount > 1 ));
2566
2566
2567
- addCmdForPatching (nullptr , miStoreCmd, nullptr , signalValue, InOrderPatchCommandHelpers::PatchCmdType::Sdi);
2567
+ addCmdForPatching (nullptr , miStoreCmd, nullptr , signalValue, NEO:: InOrderPatchCommandHelpers::PatchCmdType::Sdi);
2568
2568
}
2569
2569
2570
2570
template <GFXCORE_FAMILY gfxCoreFamily>
@@ -3640,7 +3640,7 @@ void CommandListCoreFamily<gfxCoreFamily>::appendWaitOnSingleEvent(Event *event,
3640
3640
}
3641
3641
3642
3642
template <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) {
3644
3644
if ((NEO::debugManager.flags .EnableInOrderRegularCmdListPatching .get () != 0 ) && (this ->cmdListType == TYPE_REGULAR)) {
3645
3645
this ->inOrderPatchCmds .emplace_back (externalInOrderExecInfo, cmd1, cmd2, counterValue, patchCmdType);
3646
3646
}
@@ -3649,7 +3649,7 @@ void CommandListCoreFamily<gfxCoreFamily>::addCmdForPatching(std::shared_ptr<InO
3649
3649
template <GFXCORE_FAMILY gfxCoreFamily>
3650
3650
void CommandListCoreFamily<gfxCoreFamily>::patchInOrderCmds() {
3651
3651
if (isInOrderExecutionEnabled ()) {
3652
- auto implicitAppendCounter = InOrderPatchCommandHelpers::getAppendCounterValue (*inOrderExecInfo);
3652
+ auto implicitAppendCounter = NEO:: InOrderPatchCommandHelpers::getAppendCounterValue (*inOrderExecInfo);
3653
3653
3654
3654
for (auto &cmd : inOrderPatchCmds) {
3655
3655
if (cmd.isExternalDependency () || (inOrderExecInfo->getRegularCmdListSubmissionCounter () > 1 )) {
0 commit comments