Skip to content

Commit 5be1aa4

Browse files
committed
[L0] Fix Command List Cache to correctly set In order List property
- Fix to the emplace call in the context such that the in order list property is not lost from the cache. Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
1 parent d50a59e commit 5be1aa4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

source/adapters/level_zero/context.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -767,9 +767,11 @@ ur_result_t ur_context_handle_t_::getAvailableCommandList(
767767
CommandList =
768768
Queue->CommandListMap
769769
.emplace(ZeCommandList,
770-
ur_command_list_info_t(ZeFence, true, false,
771-
ZeCommandQueue, ZeQueueDesc,
772-
Queue->useCompletionBatching()))
770+
ur_command_list_info_t(
771+
ZeFence, true, false, ZeCommandQueue, ZeQueueDesc,
772+
Queue->useCompletionBatching(), true,
773+
ZeCommandListIt->second.InOrderList,
774+
ZeCommandListIt->second.IsImmediate))
773775
.first;
774776
}
775777
ZeCommandListCache.erase(ZeCommandListIt);

0 commit comments

Comments
 (0)