Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
Co-authored-by: Romaric Jodin <rjodin@chromium.org>
  • Loading branch information
Rekt3421 and rjodinchr authored Sep 16, 2024
1 parent dcac52c commit 247a822
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1468,13 +1468,11 @@ cvk_create_command_queue(cl_context context, cl_device_id device,
}

if (config.ignore_out_of_order_execution()) {
{
// We do not support out of order command queues so this must fail
if (properties & CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE) {
*errcode_ret = CL_INVALID_QUEUE_PROPERTIES;
return nullptr;
}
}
// We do not support out of order command queues so this must fail
if (properties & CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE) {
*errcode_ret = CL_INVALID_QUEUE_PROPERTIES;
return nullptr;
}
}
auto queue = std::make_unique<cvk_command_queue>(
icd_downcast(context), icd_downcast(device), properties,
Expand Down

0 comments on commit 247a822

Please sign in to comment.