Skip to content

Commit c493799

Browse files
bmyatesCompute-Runtime-Automation
authored andcommitted
feature: Add l0DebuggerEnabled to WalkerArgs
Related-to: NEO-12993 Signed-off-by: Brandon Yates <[email protected]>
1 parent 4c580c0 commit c493799

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

shared/source/command_container/command_encoder.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ struct EncodeWalkerArgs {
128128
uint32_t maxFrontEndThreads = 0;
129129
bool requiredSystemFence = false;
130130
bool hasSample = false;
131+
bool l0DebuggerEnabled = false;
131132
};
132133

133134
template <class T>

shared/source/command_container/command_encoder_xehp_and_later.inl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,8 @@ void EncodeDispatchKernel<Family>::encode(CommandContainer &container, EncodeDis
417417
.localRegionSize = args.localRegionSize,
418418
.maxFrontEndThreads = args.device->getDeviceInfo().maxFrontEndThreads,
419419
.requiredSystemFence = args.requiresSystemMemoryFence() && args.device->getGfxCoreHelper().isFenceAllocationRequired(hwInfo),
420-
.hasSample = kernelDescriptor.kernelAttributes.flags.hasSample};
420+
.hasSample = kernelDescriptor.kernelAttributes.flags.hasSample,
421+
.l0DebuggerEnabled = args.device->getL0Debugger() != nullptr};
421422

422423
EncodeDispatchKernel<Family>::encodeAdditionalWalkerFields(rootDeviceEnvironment, walkerCmd, walkerArgs);
423424
EncodeDispatchKernel<Family>::encodeWalkerPostSyncFields(walkerCmd, rootDeviceEnvironment, walkerArgs);

0 commit comments

Comments
 (0)