mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
refactor: apply clang-format's InsertBraces rule
Formats code before InsertBraces rule is enabled. Signed-off-by: Radoslaw Jablonski <radoslaw.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9d1da44e08
commit
54de14a9dc
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
* Copyright (C) 2018-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -111,8 +111,9 @@ cl_int CommandQueueHw<GfxFamily>::enqueueKernel(
|
||||
|
||||
if (kernelInfo.builtinDispatchBuilder != nullptr) {
|
||||
cl_int err = kernelInfo.builtinDispatchBuilder->validateDispatch(&kernel, workDim, Vec3<size_t>(region), Vec3<size_t>(workGroupSize), Vec3<size_t>(globalWorkOffset));
|
||||
if (err != CL_SUCCESS)
|
||||
if (err != CL_SUCCESS) {
|
||||
return err;
|
||||
}
|
||||
}
|
||||
|
||||
DBG_LOG(PrintDispatchParameters, "Kernel: ", kernelInfo.kernelDescriptor.kernelMetadata.kernelName,
|
||||
|
||||
@@ -125,8 +125,9 @@ IndirectHeap &getIndirectHeap(CommandQueue &commandQueue, const MultiDispatchInf
|
||||
}
|
||||
// clang-format on
|
||||
|
||||
if (ih == nullptr)
|
||||
if (ih == nullptr) {
|
||||
ih = &commandQueue.getIndirectHeap(heapType, expectedSize);
|
||||
}
|
||||
|
||||
return *ih;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user