Skip to content

Commit e25eb40

Browse files
author
Jaime Arteaga
committed
Make sure CommandList methods are called within it
When calls are originated in CommandListImmediate objects, CommandList calls may be rerouted back to CommandListImmediate, causing executeCommanListImmediate() to be called twice. Change-Id: I8cea4500de4d10c9ebeb9af7b5ffe00a733fa4dd Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
1 parent f5cd168 commit e25eb40

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

level_zero/core/source/cmdlist/cmdlist_hw.inl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendImageCopyFromMemory(ze_i
338338
ze_group_count_t functionArgs{pDstRegion->width / groupSizeX, pDstRegion->height / groupSizeY,
339339
pDstRegion->depth / groupSizeZ};
340340

341-
return this->appendLaunchKernel(builtinKernel->toHandle(), &functionArgs,
342-
hEvent, numWaitEvents, phWaitEvents);
341+
return CommandListCoreFamily<gfxCoreFamily>::appendLaunchKernel(builtinKernel->toHandle(), &functionArgs,
342+
hEvent, numWaitEvents, phWaitEvents);
343343
}
344344

345345
template <GFXCORE_FAMILY gfxCoreFamily>
@@ -556,8 +556,8 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendImageCopyRegion(ze_image
556556

557557
appendEventForProfiling(hEvent, true);
558558

559-
return this->CommandListCoreFamily<gfxCoreFamily>::appendLaunchKernel(kernel->toHandle(), &functionArgs,
560-
hEvent, numWaitEvents, phWaitEvents);
559+
return CommandListCoreFamily<gfxCoreFamily>::appendLaunchKernel(kernel->toHandle(), &functionArgs,
560+
hEvent, numWaitEvents, phWaitEvents);
561561
}
562562

563563
template <GFXCORE_FAMILY gfxCoreFamily>
@@ -1127,7 +1127,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendBlitFill(void *ptr,
11271127
memcpy_s(ptrOffset(internalAlloc->getDriverAllocatedCpuPtr(), offset), (internalAlloc->getUnderlyingBufferSize() - offset), pattern, patternSize);
11281128
offset += patternSize;
11291129
}
1130-
auto ret = appendMemoryCopy(ptr, internalAlloc->getDriverAllocatedCpuPtr(), size, hEvent, 0, nullptr);
1130+
auto ret = CommandListCoreFamily<gfxCoreFamily>::appendMemoryCopy(ptr, internalAlloc->getDriverAllocatedCpuPtr(), size, hEvent, 0, nullptr);
11311131
commandContainer.getDeallocationContainer().push_back(internalAlloc);
11321132
return ret;
11331133
} else {

0 commit comments

Comments
 (0)