diff --git a/opencl/source/command_queue/copy_engine_state.h b/opencl/source/command_queue/copy_engine_state.h index 0812898774c16..deeb71d33f358 100644 --- a/opencl/source/command_queue/copy_engine_state.h +++ b/opencl/source/command_queue/copy_engine_state.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2023 Intel Corporation + * Copyright (C) 2021-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -13,8 +13,8 @@ namespace NEO { struct CopyEngineState { - aub_stream::EngineType engineType = aub_stream::EngineType::NUM_ENGINES; TaskCountType taskCount = 0; + aub_stream::EngineType engineType = aub_stream::EngineType::NUM_ENGINES; bool csrClientRegistered = false; bool isValid() const { diff --git a/opencl/source/command_queue/csr_selection_args.h b/opencl/source/command_queue/csr_selection_args.h index 7a94967ab883f..33397d2a68e3b 100644 --- a/opencl/source/command_queue/csr_selection_args.h +++ b/opencl/source/command_queue/csr_selection_args.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2023 Intel Corporation + * Copyright (C) 2021-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -24,21 +24,21 @@ struct CsrSelectionArgs { const size_t *imageOrigin = nullptr; }; - cl_command_type cmdType; - const size_t *size = nullptr; Resource srcResource; Resource dstResource; + const size_t *size = nullptr; + cl_command_type cmdType; TransferDirection direction; CsrSelectionArgs(cl_command_type cmdType, const size_t *size) - : cmdType(cmdType), - size(size), + : size(size), + cmdType(cmdType), direction(TransferDirection::hostToHost) {} template CsrSelectionArgs(cl_command_type cmdType, ResourceType *src, ResourceType *dst, uint32_t rootDeviceIndex, const size_t *size) - : cmdType(cmdType), - size(size) { + : size(size), + cmdType(cmdType) { if (src) { processResource(*src, rootDeviceIndex, this->srcResource); } diff --git a/opencl/source/command_queue/enqueue_svm.h b/opencl/source/command_queue/enqueue_svm.h index 5d9602a1dbd05..8ae2f0017261f 100644 --- a/opencl/source/command_queue/enqueue_svm.h +++ b/opencl/source/command_queue/enqueue_svm.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2024 Intel Corporation + * Copyright (C) 2018-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -25,20 +25,20 @@ using SvmFreeClbT = void(CL_CALLBACK *)(cl_command_queue queue, void *userData); struct SvmFreeUserData { - cl_uint numSvmPointers; void **svmPointers; SvmFreeClbT clb; void *userData; + cl_uint numSvmPointers; bool ownsEventDeletion; SvmFreeUserData(cl_uint numSvmPointers, void **svmPointers, SvmFreeClbT clb, void *userData, bool ownsEventDeletion) - : numSvmPointers(numSvmPointers), - svmPointers(svmPointers), + : svmPointers(svmPointers), clb(clb), userData(userData), + numSvmPointers(numSvmPointers), ownsEventDeletion(ownsEventDeletion){}; }; diff --git a/opencl/test/unit_test/command_queue/blit_enqueue_1_tests.cpp b/opencl/test/unit_test/command_queue/blit_enqueue_1_tests.cpp index 5d18436dbe643..e53938ff5a409 100644 --- a/opencl/test/unit_test/command_queue/blit_enqueue_1_tests.cpp +++ b/opencl/test/unit_test/command_queue/blit_enqueue_1_tests.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2024 Intel Corporation + * Copyright (C) 2019-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -1251,7 +1251,7 @@ HWTEST_TEMPLATED_F(BlitEnqueueTaskCountTests, whenWaitUntilCompletionCalledThenW uint32_t gpgpuTaskCount = 123; uint32_t bcsTaskCount = 123; - CopyEngineState bcsState{bcsCsr->getOsContext().getEngineType(), bcsTaskCount}; + CopyEngineState bcsState{bcsTaskCount, bcsCsr->getOsContext().getEngineType()}; commandQueue->waitUntilComplete(gpgpuTaskCount, Range{&bcsState}, 0, false); EXPECT_EQ(gpgpuTaskCount, static_cast *>(gpgpuCsr)->latestWaitForCompletionWithTimeoutTaskCount.load()); diff --git a/opencl/test/unit_test/command_queue/command_queue_hw_1_tests.cpp b/opencl/test/unit_test/command_queue/command_queue_hw_1_tests.cpp index 8c30cf1376a5f..5a20e8da0e2a4 100644 --- a/opencl/test/unit_test/command_queue/command_queue_hw_1_tests.cpp +++ b/opencl/test/unit_test/command_queue/command_queue_hw_1_tests.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2024 Intel Corporation + * Copyright (C) 2018-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -55,7 +55,7 @@ HWTEST_F(CommandQueueHwTest, whenCallingIsCompletedThenTestTaskCountValue) { bcsCsr->setupContext(*osContext); bcsCsr->initializeTagAllocation(); EngineControl control(bcsCsr.get(), osContext.get()); - CopyEngineState state{aub_stream::EngineType::ENGINE_BCS, 1, false}; + CopyEngineState state{1, aub_stream::EngineType::ENGINE_BCS, false}; MockCommandQueueHw cmdQ(context, pClDevice, nullptr); diff --git a/opencl/test/unit_test/command_stream/cl_tbx_command_stream_tests.cpp b/opencl/test/unit_test/command_stream/cl_tbx_command_stream_tests.cpp index 658e304f49459..21163d374b611 100644 --- a/opencl/test/unit_test/command_stream/cl_tbx_command_stream_tests.cpp +++ b/opencl/test/unit_test/command_stream/cl_tbx_command_stream_tests.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2023 Intel Corporation + * Copyright (C) 2021-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -47,7 +47,7 @@ HWTEST_F(ClTbxCommandStreamTests, givenTbxCsrWhenDispatchBlitEnqueueThenProcessC cmdQ.clearBcsEngines(); cmdQ.bcsEngines[0] = &engineControl1; - cmdQ.bcsStates[0] = {aub_stream::ENGINE_BCS, 0, false}; + cmdQ.bcsStates[0] = {0, aub_stream::ENGINE_BCS, false}; cl_int error = CL_SUCCESS; std::unique_ptr buffer(Buffer::create(&context, 0, 1, nullptr, error)); diff --git a/opencl/test/unit_test/mem_obj/buffer_bcs_tests.cpp b/opencl/test/unit_test/mem_obj/buffer_bcs_tests.cpp index 8944f24719763..4bdae931630eb 100644 --- a/opencl/test/unit_test/mem_obj/buffer_bcs_tests.cpp +++ b/opencl/test/unit_test/mem_obj/buffer_bcs_tests.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2024 Intel Corporation + * Copyright (C) 2020-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -619,7 +619,7 @@ HWTEST_TEMPLATED_F(BcsBufferTests, givenAllBcsEnginesReadyWhenWaitingForEventThe ultCsr2.initializeTagAllocation(); ultCsr2.setupContext(osContext); - CopyEngineState copyEngineState = {aub_stream::EngineType::ENGINE_BCS2, 2, false}; + CopyEngineState copyEngineState = {2, aub_stream::EngineType::ENGINE_BCS2, false}; EngineControl engineControl = {&ultCsr2, &osContext}; auto bcs2Index = EngineHelpers::getBcsIndex(aub_stream::EngineType::ENGINE_BCS2); mockCmdQ->bcsStates[bcs2Index] = copyEngineState; diff --git a/opencl/test/unit_test/mem_obj/image_tests.cpp b/opencl/test/unit_test/mem_obj/image_tests.cpp index 16f53bd885a9f..144d84e145f02 100644 --- a/opencl/test/unit_test/mem_obj/image_tests.cpp +++ b/opencl/test/unit_test/mem_obj/image_tests.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2024 Intel Corporation + * Copyright (C) 2018-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -1559,7 +1559,7 @@ TEST(ImageConvertDescriptorTest, givenClImageDescWhenConvertedThenCorrectImageDe } TEST(ImageConvertDescriptorTest, givenImageDescriptorWhenConvertedThenCorrectClImageDescIsReturned) { - ImageDescriptor desc = {ImageType::image2D, 16, 24, 1, 1, 1024, 2048, 1, 3, false}; + ImageDescriptor desc = {16, 24, 1, 1, 1024, 2048, ImageType::image2D, 1, 3, false}; auto clDesc = Image::convertDescriptor(desc); EXPECT_EQ(clDesc.image_type, static_cast(CL_MEM_OBJECT_IMAGE2D)); diff --git a/shared/source/command_stream/command_stream_receiver_hw.h b/shared/source/command_stream/command_stream_receiver_hw.h index 0392c0c7b8913..04f75813a3d89 100644 --- a/shared/source/command_stream/command_stream_receiver_hw.h +++ b/shared/source/command_stream/command_stream_receiver_hw.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2024 Intel Corporation + * Copyright (C) 2018-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -25,10 +25,10 @@ class CommandStreamReceiverHw : public CommandStreamReceiver { using STATE_BASE_ADDRESS = typename GfxFamily::STATE_BASE_ADDRESS; struct ImmediateFlushData { - PipelineSelectArgs pipelineSelectArgs{}; - size_t estimatedSize = 0; void *endPtr = nullptr; + size_t estimatedSize = 0; size_t csrStartOffset = 0; + PipelineSelectArgs pipelineSelectArgs{}; bool pipelineSelectFullConfigurationNeeded = false; bool pipelineSelectDirty = false; diff --git a/shared/source/command_stream/command_stream_receiver_simulated_common_hw.h b/shared/source/command_stream/command_stream_receiver_simulated_common_hw.h index 078ad9c9556f3..405d810845981 100644 --- a/shared/source/command_stream/command_stream_receiver_simulated_common_hw.h +++ b/shared/source/command_stream/command_stream_receiver_simulated_common_hw.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2024 Intel Corporation + * Copyright (C) 2018-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -81,12 +81,12 @@ class CommandStreamReceiverSimulatedCommonHw : public CommandStreamReceiverHw { diff --git a/shared/source/device_binary_format/zebin/zeinfo.h b/shared/source/device_binary_format/zebin/zeinfo.h index d102c14c44e05..3a923f7133815 100644 --- a/shared/source/device_binary_format/zebin/zeinfo.h +++ b/shared/source/device_binary_format/zebin/zeinfo.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2023-2024 Intel Corporation + * Copyright (C) 2023-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -634,12 +634,12 @@ inline constexpr BtiValueT btiValue = -1; } // namespace Defaults struct PayloadArgumentBaseT { - ArgTypeT argType = argTypeUnknown; OffsetT offset = Defaults::offset; SourceOffseT sourceOffset = Defaults::sourceOffset; SizeT size = 0; ArgIndexT argIndex = Defaults::argIndex; BtiValueT btiValue = Defaults::btiValue; + ArgTypeT argType = argTypeUnknown; AddrmodeT addrmode = memoryAddressingModeUnknown; AddrspaceT addrspace = addressSpaceUnknown; AccessTypeT accessType = accessTypeUnknown; @@ -692,9 +692,9 @@ inline constexpr Slot slot = 0U; } // namespace Defaults struct PerThreadMemoryBufferBaseT { + SizeT size = 0U; AllocationType allocationType = AllocationTypeUnknown; MemoryUsageT memoryUsage = MemoryUsageUnknown; - SizeT size = 0U; IsSimtThreadT isSimtThread = Defaults::isSimtThread; Slot slot = Defaults::slot; }; @@ -732,8 +732,8 @@ inline constexpr NormalizedT normalized = false; struct InlineSamplerBaseT { SamplerIndexT samplerIndex = Defaults::samplerIndex; - AddrModeT addrMode = Defaults::addrMode; FilterModeT filterMode = Defaults::filterMode; + AddrModeT addrMode = Defaults::addrMode; NormalizedT normalized = Defaults::normalized; }; } // namespace InlineSamplers diff --git a/shared/source/helpers/surface_format_info.h b/shared/source/helpers/surface_format_info.h index d9e93175f4dc1..0d94bf5fafe47 100644 --- a/shared/source/helpers/surface_format_info.h +++ b/shared/source/helpers/surface_format_info.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2024 Intel Corporation + * Copyright (C) 2020-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -218,13 +218,13 @@ enum class ImageType { }; struct ImageDescriptor { - ImageType imageType; size_t imageWidth; size_t imageHeight; size_t imageDepth; size_t imageArraySize; size_t imageRowPitch; size_t imageSlicePitch; + ImageType imageType; uint32_t numMipLevels; uint32_t numSamples; bool fromParent; diff --git a/shared/source/memory_manager/host_ptr_defines.h b/shared/source/memory_manager/host_ptr_defines.h index c96271560a408..af8879bec0cb0 100644 --- a/shared/source/memory_manager/host_ptr_defines.h +++ b/shared/source/memory_manager/host_ptr_defines.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2023 Intel Corporation + * Copyright (C) 2018-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -51,9 +51,9 @@ struct AllocationRequirements { struct FragmentStorage { const void *fragmentCpuPointer = nullptr; size_t fragmentSize = 0; - int refCount = 0; OsHandle *osInternalStorage = nullptr; ResidencyData *residency = nullptr; + int refCount = 0; bool driverAllocation = false; }; diff --git a/shared/source/os_interface/linux/xe/ioctl_helper_xe.h b/shared/source/os_interface/linux/xe/ioctl_helper_xe.h index ba1078c7f134b..fbef90d8c3237 100644 --- a/shared/source/os_interface/linux/xe/ioctl_helper_xe.h +++ b/shared/source/os_interface/linux/xe/ioctl_helper_xe.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2023-2024 Intel Corporation + * Copyright (C) 2023-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -190,9 +190,9 @@ class IoctlHelperXe : public IoctlHelper { std::unique_ptr defaultEngine; struct DebugMetadata { - DrmResourceClass type; uint64_t offset; uint64_t size; + DrmResourceClass type; bool isCookie; };