From 72cf384c7dd94c318b1529a1973a5ca6260b6a20 Mon Sep 17 00:00:00 2001 From: Filip Hazubski Date: Mon, 30 Sep 2024 13:52:51 +0000 Subject: [PATCH] refactor: Fix typo Signed-off-by: Filip Hazubski --- .../tools/source/metrics/metric_oa_query_imp.cpp | 6 +++--- .../command_stream_receiver_hw_1_tests.cpp | 8 ++++---- .../debug_settings/debug_variables_base.inl | 2 +- .../command_stream_receiver_hw_gen12lp.cpp | 4 ++-- .../source/helpers/blit_commands_helper_base.inl | 2 +- .../command_stream_receiver_hw_xe2_hpg_core.cpp | 8 ++++---- .../command_stream_receiver_hw_xe_hpc_core.cpp | 16 ++++++++-------- 7 files changed, 23 insertions(+), 23 deletions(-) diff --git a/level_zero/tools/source/metrics/metric_oa_query_imp.cpp b/level_zero/tools/source/metrics/metric_oa_query_imp.cpp index be4b4b4a3c..8d5a44b3d3 100644 --- a/level_zero/tools/source/metrics/metric_oa_query_imp.cpp +++ b/level_zero/tools/source/metrics/metric_oa_query_imp.cpp @@ -626,9 +626,9 @@ bool OaMetricQueryPoolImp::allocateGpuMemory() { bool OaMetricQueryPoolImp::createMetricQueryPool() { // Validate metric group query - only event based is supported. - zet_metric_group_properties_t metricGroupProperites = {ZET_STRUCTURE_TYPE_METRIC_GROUP_PROPERTIES, nullptr}; - OaMetricGroupImp::getProperties(hMetricGroup, &metricGroupProperites); - const bool validMetricGroup = metricGroupProperites.samplingType == ZET_METRIC_GROUP_SAMPLING_TYPE_FLAG_EVENT_BASED; + zet_metric_group_properties_t metricGroupProperties = {ZET_STRUCTURE_TYPE_METRIC_GROUP_PROPERTIES, nullptr}; + OaMetricGroupImp::getProperties(hMetricGroup, &metricGroupProperties); + const bool validMetricGroup = metricGroupProperties.samplingType == ZET_METRIC_GROUP_SAMPLING_TYPE_FLAG_EVENT_BASED; if (!validMetricGroup) { return false; diff --git a/opencl/test/unit_test/command_stream/command_stream_receiver_hw_1_tests.cpp b/opencl/test/unit_test/command_stream/command_stream_receiver_hw_1_tests.cpp index 304e702959..ef8c2f3898 100644 --- a/opencl/test/unit_test/command_stream/command_stream_receiver_hw_1_tests.cpp +++ b/opencl/test/unit_test/command_stream/command_stream_receiver_hw_1_tests.cpp @@ -686,7 +686,7 @@ HWTEST_F(BcsTests, whenAskingForCmdSizeForMiFlushDwWithMemoryWriteThenReturnCorr EXPECT_EQ(miFlushDwSize + additionalSize, totalSize); } -HWTEST_F(BcsTests, givenBlitPropertiesContainerWhenEstimatingCommandsSizeThenCalculateForAllAttachedProperites) { +HWTEST_F(BcsTests, givenBlitPropertiesContainerWhenEstimatingCommandsSizeThenCalculateForAllAttachedProperties) { const auto max2DBlitSize = BlitterConstants::maxBlitWidth * BlitterConstants::maxBlitHeight; const uint32_t numberOfBlts = 3; const size_t bltSize = (3 * max2DBlitSize); @@ -729,7 +729,7 @@ HWTEST_F(BcsTests, givenBlitPropertiesContainerWhenEstimatingCommandsSizeThenCal EXPECT_EQ(expectedAlignedSize, alignedEstimatedSize); } -HWTEST_F(BcsTests, givenBlitPropertiesContainerWhenDirectsubmissionEnabledEstimatingCommandsSizeThenCalculateForAllAttachedProperites) { +HWTEST_F(BcsTests, givenBlitPropertiesContainerWhenDirectsubmissionEnabledEstimatingCommandsSizeThenCalculateForAllAttachedProperties) { const auto max2DBlitSize = BlitterConstants::maxBlitWidth * BlitterConstants::maxBlitHeight; const uint32_t numberOfBlts = 3; const size_t bltSize = (3 * max2DBlitSize); @@ -771,7 +771,7 @@ HWTEST_F(BcsTests, givenBlitPropertiesContainerWhenDirectsubmissionEnabledEstima EXPECT_EQ(expectedAlignedSize, alignedEstimatedSize); } -HWTEST_F(BcsTests, givenBlitPropertiesContainerWhenEstimatingCommandsSizeForWriteReadBufferRectThenCalculateForAllAttachedProperites) { +HWTEST_F(BcsTests, givenBlitPropertiesContainerWhenEstimatingCommandsSizeForWriteReadBufferRectThenCalculateForAllAttachedProperties) { constexpr auto max2DBlitSize = BlitterConstants::maxBlitWidth * BlitterConstants::maxBlitHeight; const Vec3 bltSize = {(3 * max2DBlitSize), 4, 2}; const size_t numberOfBlts = 3 * bltSize.y * bltSize.z; @@ -812,7 +812,7 @@ HWTEST_F(BcsTests, givenBlitPropertiesContainerWhenEstimatingCommandsSizeForWrit EXPECT_EQ(expectedAlignedSize, alignedEstimatedSize); } -HWTEST_F(BcsTests, givenBlitPropertiesContainerWhenDirectSubmissionEnabledEstimatingCommandsSizeForWriteReadBufferRectThenCalculateForAllAttachedProperites) { +HWTEST_F(BcsTests, givenBlitPropertiesContainerWhenDirectSubmissionEnabledEstimatingCommandsSizeForWriteReadBufferRectThenCalculateForAllAttachedProperties) { constexpr auto max2DBlitSize = BlitterConstants::maxBlitWidth * BlitterConstants::maxBlitHeight; const Vec3 bltSize = {(3 * max2DBlitSize), 4, 2}; const size_t numberOfBlts = 3 * bltSize.y * bltSize.z; diff --git a/shared/source/debug_settings/debug_variables_base.inl b/shared/source/debug_settings/debug_variables_base.inl index ce3cd48b24..5686e0e2ef 100644 --- a/shared/source/debug_settings/debug_variables_base.inl +++ b/shared/source/debug_settings/debug_variables_base.inl @@ -67,7 +67,7 @@ DECLARE_DEBUG_VARIABLE(bool, CleanStateInPreamble, false, "Ensures clean state i DECLARE_DEBUG_VARIABLE(bool, EnableStatelessCompressionWithUnifiedMemory, false, "Enable stateless compression with unified memory") DECLARE_DEBUG_VARIABLE(bool, UseClearColorAllocationForBlitter, false, "Create clear color allocation for blitter operations") DECLARE_DEBUG_VARIABLE(bool, DisableCachingForHeaps, false, "Do not cache heaps in L3/L1") -DECLARE_DEBUG_VARIABLE(bool, GlobalSequencerFlushOnCopyEngine, false, "Add global sequencer flash for blitter") +DECLARE_DEBUG_VARIABLE(bool, GlobalSequencerFlushOnCopyEngine, false, "Add global sequencer flush for blitter") DECLARE_DEBUG_VARIABLE(bool, UseImmDataWriteModeOnPostSyncOperation, false, "Use IMM data write mode as post sync operation in Compute Walker") DECLARE_DEBUG_VARIABLE(bool, EnableResourceTags, false, "Enable resource tagging in GmmLib") DECLARE_DEBUG_VARIABLE(bool, DoNotFreeResources, false, "Do not free resources") diff --git a/shared/source/gen12lp/command_stream_receiver_hw_gen12lp.cpp b/shared/source/gen12lp/command_stream_receiver_hw_gen12lp.cpp index b6dfd5b72a..d22232e0e8 100644 --- a/shared/source/gen12lp/command_stream_receiver_hw_gen12lp.cpp +++ b/shared/source/gen12lp/command_stream_receiver_hw_gen12lp.cpp @@ -37,9 +37,9 @@ void populateFactoryTable>() { template <> template <> -void BlitCommandsHelper::appendColorDepth(const BlitProperties &blitProperites, typename Family::XY_BLOCK_COPY_BLT &blitCmd) { +void BlitCommandsHelper::appendColorDepth(const BlitProperties &blitProperties, typename Family::XY_BLOCK_COPY_BLT &blitCmd) { using XY_BLOCK_COPY_BLT = typename Family::XY_BLOCK_COPY_BLT; - switch (blitProperites.bytesPerPixel) { + switch (blitProperties.bytesPerPixel) { default: UNRECOVERABLE_IF(true); break; diff --git a/shared/source/helpers/blit_commands_helper_base.inl b/shared/source/helpers/blit_commands_helper_base.inl index e9686facd8..a3810c3455 100644 --- a/shared/source/helpers/blit_commands_helper_base.inl +++ b/shared/source/helpers/blit_commands_helper_base.inl @@ -400,7 +400,7 @@ void BlitCommandsHelper::appendBlitCommandsForBuffer(const BlitProper } template -void BlitCommandsHelper::appendBlitCommandsMemCopy(const BlitProperties &blitProperites, typename GfxFamily::XY_COPY_BLT &blitCmd, +void BlitCommandsHelper::appendBlitCommandsMemCopy(const BlitProperties &blitProperties, typename GfxFamily::XY_COPY_BLT &blitCmd, const RootDeviceEnvironment &rootDeviceEnvironment) { } diff --git a/shared/source/xe2_hpg_core/command_stream_receiver_hw_xe2_hpg_core.cpp b/shared/source/xe2_hpg_core/command_stream_receiver_hw_xe2_hpg_core.cpp index fd989539ba..de0e32e59c 100644 --- a/shared/source/xe2_hpg_core/command_stream_receiver_hw_xe2_hpg_core.cpp +++ b/shared/source/xe2_hpg_core/command_stream_receiver_hw_xe2_hpg_core.cpp @@ -144,13 +144,13 @@ uint32_t BlitCommandsHelper::getAvailableBytesPerPixel(size_t copySize, } template <> -void BlitCommandsHelper::appendBlitCommandsMemCopy(const BlitProperties &blitProperites, typename Family::XY_COPY_BLT &blitCmd, +void BlitCommandsHelper::appendBlitCommandsMemCopy(const BlitProperties &blitProperties, typename Family::XY_COPY_BLT &blitCmd, const RootDeviceEnvironment &rootDeviceEnvironment) { using MEM_COPY = typename Family::MEM_COPY; using COMPRESSION_FORMAT30 = typename MEM_COPY::COMPRESSION_FORMAT30; - auto dstAllocation = blitProperites.dstAllocation; - auto srcAllocation = blitProperites.srcAllocation; + auto dstAllocation = blitProperties.dstAllocation; + auto srcAllocation = blitProperties.srcAllocation; if (blitCmd.getDestinationY2CoordinateBottom() > 1) { blitCmd.setCopyType(MEM_COPY::COPY_TYPE::COPY_TYPE_MATRIX_COPY); @@ -183,7 +183,7 @@ void BlitCommandsHelper::appendBlitCommandsMemCopy(const BlitProperties blitCmd.setCompressionFormat(static_cast(compressionFormat)); - DEBUG_BREAK_IF(AuxTranslationDirection::none != blitProperites.auxTranslationDirection); + DEBUG_BREAK_IF(AuxTranslationDirection::none != blitProperties.auxTranslationDirection); } template <> diff --git a/shared/source/xe_hpc_core/command_stream_receiver_hw_xe_hpc_core.cpp b/shared/source/xe_hpc_core/command_stream_receiver_hw_xe_hpc_core.cpp index 044a707bd6..f931eb5f87 100644 --- a/shared/source/xe_hpc_core/command_stream_receiver_hw_xe_hpc_core.cpp +++ b/shared/source/xe_hpc_core/command_stream_receiver_hw_xe_hpc_core.cpp @@ -72,12 +72,12 @@ uint32_t BlitCommandsHelper::getAvailableBytesPerPixel(size_t copySize, } template <> -void BlitCommandsHelper::appendBlitCommandsMemCopy(const BlitProperties &blitProperites, typename Family::XY_COPY_BLT &blitCmd, +void BlitCommandsHelper::appendBlitCommandsMemCopy(const BlitProperties &blitProperties, typename Family::XY_COPY_BLT &blitCmd, const RootDeviceEnvironment &rootDeviceEnvironment) { using MEM_COPY = typename Family::MEM_COPY; - auto dstAllocation = blitProperites.dstAllocation; - auto srcAllocation = blitProperites.srcAllocation; + auto dstAllocation = blitProperties.dstAllocation; + auto srcAllocation = blitProperties.srcAllocation; if (blitCmd.getDestinationY2CoordinateBottom() > 1) { blitCmd.setCopyType(MEM_COPY::COPY_TYPE::COPY_TYPE_MATRIX_COPY); @@ -87,7 +87,7 @@ void BlitCommandsHelper::appendBlitCommandsMemCopy(const BlitProperties auto cachePolicy = GMM_RESOURCE_USAGE_OCL_BUFFER; // if transfer size bigger then L3 size, copy with L3 disabled - if (blitProperites.copySize.x * blitProperites.copySize.y * blitProperites.copySize.z * blitProperites.bytesPerPixel >= (rootDeviceEnvironment.getHardwareInfo()->gtSystemInfo.L3CacheSizeInKb * MemoryConstants::kiloByte / 2)) { + if (blitProperties.copySize.x * blitProperties.copySize.y * blitProperties.copySize.z * blitProperties.bytesPerPixel >= (rootDeviceEnvironment.getHardwareInfo()->gtSystemInfo.L3CacheSizeInKb * MemoryConstants::kiloByte / 2)) { cachePolicy = GMM_RESOURCE_USAGE_OCL_BUFFER_CACHELINE_MISALIGNED; } @@ -125,13 +125,13 @@ void BlitCommandsHelper::appendBlitCommandsMemCopy(const BlitProperties } if (blitCmd.getDestinationCompressible() == MEM_COPY::DESTINATION_COMPRESSIBLE::DESTINATION_COMPRESSIBLE_COMPRESSIBLE && - AuxTranslationDirection::auxToNonAux != blitProperites.auxTranslationDirection) { + AuxTranslationDirection::auxToNonAux != blitProperties.auxTranslationDirection) { blitCmd.setDestinationCompressionEnable(MEM_COPY::DESTINATION_COMPRESSION_ENABLE::DESTINATION_COMPRESSION_ENABLE_ENABLE); } else { blitCmd.setDestinationCompressionEnable(MEM_COPY::DESTINATION_COMPRESSION_ENABLE::DESTINATION_COMPRESSION_ENABLE_DISABLE); } - DEBUG_BREAK_IF((AuxTranslationDirection::none != blitProperites.auxTranslationDirection) && + DEBUG_BREAK_IF((AuxTranslationDirection::none != blitProperties.auxTranslationDirection) && (dstAllocation != srcAllocation || !dstAllocation->isCompressionEnabled())); } @@ -212,11 +212,11 @@ void BlitCommandsHelper::appendSurfaceType(const BlitProperties &blitPro template <> template <> -void BlitCommandsHelper::appendColorDepth(const BlitProperties &blitProperites, typename Family::XY_BLOCK_COPY_BLT &blitCmd) {} +void BlitCommandsHelper::appendColorDepth(const BlitProperties &blitProperties, typename Family::XY_BLOCK_COPY_BLT &blitCmd) {} template <> template <> -void BlitCommandsHelper::appendColorDepth(const BlitProperties &blitProperites, typename Family::XY_COPY_BLT &blitCmd) {} +void BlitCommandsHelper::appendColorDepth(const BlitProperties &blitProperties, typename Family::XY_COPY_BLT &blitCmd) {} template <> void BlitCommandsHelper::encodeWa(LinearStream &cmdStream, const BlitProperties &blitProperties, uint32_t &latestSentBcsWaValue) {