Skip to content

Commit

Permalink
[L0] Disable drver in order in command buffer
Browse files Browse the repository at this point in the history
Signed-off-by: Neil R. Spruit <[email protected]>
  • Loading branch information
nrspruit committed Dec 4, 2024
1 parent cd8b01c commit e42dab4
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions source/adapters/level_zero/command_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,12 +598,16 @@ ur_result_t createMainCommandList(ur_context_handle_t Context,
*/
bool canBeInOrder(ur_context_handle_t Context,
const ur_exp_command_buffer_desc_t *CommandBufferDesc) {
std::ignore = Context;
std::ignore = CommandBufferDesc;
// In-order command-lists are not available in old driver version.
bool CompatibleDriver = Context->getPlatform()->isDriverVersionNewerOrSimilar(
1, 3, L0_DRIVER_INORDER_MIN_VERSION);
return CompatibleDriver
? (CommandBufferDesc ? CommandBufferDesc->isInOrder : false)
: false;
// bool CompatibleDriver =
// Context->getPlatform()->isDriverVersionNewerOrSimilar(
// 1, 3, L0_DRIVER_INORDER_MIN_VERSION);
// return CompatibleDriver
// ? (CommandBufferDesc ? CommandBufferDesc->isInOrder : false)
// : false;
return false;
}

/**
Expand Down

0 comments on commit e42dab4

Please sign in to comment.