From f2b0dad964fbbed27ba27e550661792e235fe7a8 Mon Sep 17 00:00:00 2001 From: Mateusz Jablonski Date: Fri, 29 Nov 2024 09:46:31 +0000 Subject: [PATCH] test: remove not used usings/typedefs in shared tests Signed-off-by: Mateusz Jablonski --- .../encoders/test_encode_dispatch_kernel_dg2_and_later.cpp | 1 - .../encoders/test_encode_grf_mode_xe_hp_and_later.cpp | 3 +-- shared/test/unit_test/encoders/test_encode_math.cpp | 5 +---- shared/test/unit_test/encoders/test_encode_semaphore.cpp | 2 -- .../test/unit_test/gen12lp/test_command_encoder_gen12lp.cpp | 1 - shared/test/unit_test/gen12lp/test_preamble_gen12lp.cpp | 1 - .../helpers/blit_commands_helper_tests_gen12lp.cpp | 6 ------ .../unit_test/preemption/test_preemption_xe2_and_later.cpp | 2 -- .../unit_test/utilities/software_tags_manager_tests.cpp | 1 - .../xe2_hpg_core/compute_mode_tests_xe2_hpg_core.cpp | 5 ----- .../xe2_hpg_core/gfx_core_helper_tests_xe2_hpg_core.cpp | 2 -- .../unit_test/xe2_hpg_core/test_encode_xe2_hpg_core.cpp | 3 --- .../xe_hpc_core/dispatch_walker_tests_xe_hpc_core.cpp | 1 - .../test/unit_test/xe_hpc_core/test_encode_xe_hpc_core.cpp | 2 -- .../unit_test/xe_hpg_core/dg2/compute_mode_tests_dg2.cpp | 3 +-- shared/test/unit_test/xe_hpg_core/dg2/test_encode_dg2.cpp | 3 --- 16 files changed, 3 insertions(+), 38 deletions(-) diff --git a/shared/test/unit_test/encoders/test_encode_dispatch_kernel_dg2_and_later.cpp b/shared/test/unit_test/encoders/test_encode_dispatch_kernel_dg2_and_later.cpp index 6ca1936421..a0255a0f3e 100644 --- a/shared/test/unit_test/encoders/test_encode_dispatch_kernel_dg2_and_later.cpp +++ b/shared/test/unit_test/encoders/test_encode_dispatch_kernel_dg2_and_later.cpp @@ -135,7 +135,6 @@ HWTEST2_F(CommandEncodeStatesTestDg2AndLater, GivenDebugOverrideWhenSetAdditiona } HWTEST2_F(CommandEncodeStatesTestDg2AndLater, givenOverridePreferredSlmAllocationSizePerDssWhenDispatchingKernelThenCorrectValueIsSet, IsAtLeastXeHpgCore) { - using INTERFACE_DESCRIPTOR_DATA = typename FamilyType::INTERFACE_DESCRIPTOR_DATA; using DefaultWalkerType = typename FamilyType::DefaultWalkerType; DebugManagerStateRestore restorer; debugManager.flags.OverridePreferredSlmAllocationSizePerDss.set(5); diff --git a/shared/test/unit_test/encoders/test_encode_grf_mode_xe_hp_and_later.cpp b/shared/test/unit_test/encoders/test_encode_grf_mode_xe_hp_and_later.cpp index 00dd0be06b..7071247b7f 100644 --- a/shared/test/unit_test/encoders/test_encode_grf_mode_xe_hp_and_later.cpp +++ b/shared/test/unit_test/encoders/test_encode_grf_mode_xe_hp_and_later.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2023 Intel Corporation + * Copyright (C) 2021-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -21,7 +21,6 @@ using namespace NEO; using CommandEncodeStatesTest = Test; HWCMDTEST_F(IGFX_XE_HP_CORE, CommandEncodeStatesTest, givenCommandContainerWhenNumGrfRequiredIsDefaultThenLargeGrfModeDisabled) { - using PIPELINE_SELECT = typename FamilyType::PIPELINE_SELECT; using STATE_COMPUTE_MODE = typename FamilyType::STATE_COMPUTE_MODE; StreamProperties streamProperties{}; auto &rootDeviceEnvironment = pDevice->getRootDeviceEnvironment(); diff --git a/shared/test/unit_test/encoders/test_encode_math.cpp b/shared/test/unit_test/encoders/test_encode_math.cpp index 4f9a67b056..4e9ee65f8d 100644 --- a/shared/test/unit_test/encoders/test_encode_math.cpp +++ b/shared/test/unit_test/encoders/test_encode_math.cpp @@ -222,7 +222,6 @@ HWTEST_F(CommandEncoderMathTest, givenOffsetAndValueWhenEncodeBitwiseAndValIsCal HWTEST_F(CommandEncoderMathTest, WhenSettingGroupSizeIndirectThenCommandsAreCorrect) { using MI_MATH = typename FamilyType::MI_MATH; - using MI_MATH_ALU_INST_INLINE = typename FamilyType::MI_MATH_ALU_INST_INLINE; using MI_STORE_REGISTER_MEM = typename FamilyType::MI_STORE_REGISTER_MEM; CommandContainer cmdContainer; @@ -247,8 +246,6 @@ HWTEST_F(CommandEncoderMathTest, WhenSettingGroupSizeIndirectThenCommandsAreCorr } HWTEST_F(CommandEncoderMathTest, WhenSettingGroupCountIndirectThenCommandsAreCorrect) { - using MI_MATH = typename FamilyType::MI_MATH; - using MI_MATH_ALU_INST_INLINE = typename FamilyType::MI_MATH_ALU_INST_INLINE; using MI_STORE_REGISTER_MEM = typename FamilyType::MI_STORE_REGISTER_MEM; CommandContainer cmdContainer; @@ -377,4 +374,4 @@ HWTEST_F(CommandEncodeAluTests, whenProgrammingDecrementOperationThenUseCorrectA EXPECT_EQ(static_cast(AluRegisters::opcodeStore), miAluCmd->DW0.BitField.ALUOpcode); EXPECT_EQ(static_cast(decRegister), miAluCmd->DW0.BitField.Operand1); EXPECT_EQ(static_cast(AluRegisters::accu), miAluCmd->DW0.BitField.Operand2); -} \ No newline at end of file +} diff --git a/shared/test/unit_test/encoders/test_encode_semaphore.cpp b/shared/test/unit_test/encoders/test_encode_semaphore.cpp index cd38e62c35..9692b610eb 100644 --- a/shared/test/unit_test/encoders/test_encode_semaphore.cpp +++ b/shared/test/unit_test/encoders/test_encode_semaphore.cpp @@ -77,7 +77,6 @@ HWTEST_F(CommandEncodeSemaphore, whenAddingMiSemaphoreCommandThenExpectCompareFi HWTEST2_F(CommandEncodeSemaphore, givenIndirectModeSetWhenProgrammingSemaphoreThenSetIndirectBit, IsAtLeastXeHpCore) { using MI_SEMAPHORE_WAIT = typename FamilyType::MI_SEMAPHORE_WAIT; using COMPARE_OPERATION = typename FamilyType::MI_SEMAPHORE_WAIT::COMPARE_OPERATION; - using WAIT_MODE = typename FamilyType::MI_SEMAPHORE_WAIT::WAIT_MODE; auto buffer = std::make_unique(128); LinearStream stream(buffer.get(), 128); @@ -104,7 +103,6 @@ HWTEST2_F(CommandEncodeSemaphore, givenIndirectModeSetWhenProgrammingSemaphoreTh } HWTEST_F(CommandEncodeSemaphore, whenGettingMiSemaphoreCommandSizeThenExpectSingleMiSemaphoreCommandSize) { - using MI_SEMAPHORE_WAIT = typename FamilyType::MI_SEMAPHORE_WAIT; size_t expectedSize = NEO::EncodeSemaphore::getSizeMiSemaphoreWait(); size_t actualSize = EncodeSemaphore::getSizeMiSemaphoreWait(); EXPECT_EQ(expectedSize, actualSize); diff --git a/shared/test/unit_test/gen12lp/test_command_encoder_gen12lp.cpp b/shared/test/unit_test/gen12lp/test_command_encoder_gen12lp.cpp index d78371d89b..3160a3100d 100644 --- a/shared/test/unit_test/gen12lp/test_command_encoder_gen12lp.cpp +++ b/shared/test/unit_test/gen12lp/test_command_encoder_gen12lp.cpp @@ -80,7 +80,6 @@ struct MockOsContext : public OsContext { GEN12LPTEST_F(CommandEncodeStatesTest, givenVariousEngineTypesWhenEncodeSbaThenAdditionalPipelineSelectWAIsAppliedOnlyToRcs) { using PIPELINE_SELECT = typename FamilyType::PIPELINE_SELECT; - using STATE_COMPUTE_MODE = typename FamilyType::STATE_COMPUTE_MODE; using STATE_BASE_ADDRESS = typename FamilyType::STATE_BASE_ADDRESS; CommandContainer cmdContainer; diff --git a/shared/test/unit_test/gen12lp/test_preamble_gen12lp.cpp b/shared/test/unit_test/gen12lp/test_preamble_gen12lp.cpp index fc4dbe0a90..bd14ca362b 100644 --- a/shared/test/unit_test/gen12lp/test_preamble_gen12lp.cpp +++ b/shared/test/unit_test/gen12lp/test_preamble_gen12lp.cpp @@ -19,7 +19,6 @@ using TglLpSlm = PreambleFixture; HWTEST2_F(TglLpSlm, givenTglLpWhenPreambleIsBeingProgrammedThenThreadArbitrationPolicyIsIgnored, IsTGLLP) { DebugManagerStateRestore dbgRestore; debugManager.flags.ForcePreemptionMode.set(static_cast(PreemptionMode::Disabled)); - typedef Gen12LpFamily::MI_LOAD_REGISTER_IMM MI_LOAD_REGISTER_IMM; LinearStream &cs = linearStream; uint32_t l3Config = PreambleHelper::getL3Config(pDevice->getHardwareInfo(), true); MockDevice mockDevice; diff --git a/shared/test/unit_test/helpers/blit_commands_helper_tests_gen12lp.cpp b/shared/test/unit_test/helpers/blit_commands_helper_tests_gen12lp.cpp index 19c7dc2ffd..96a187e4f3 100644 --- a/shared/test/unit_test/helpers/blit_commands_helper_tests_gen12lp.cpp +++ b/shared/test/unit_test/helpers/blit_commands_helper_tests_gen12lp.cpp @@ -71,7 +71,6 @@ HWTEST2_F(BlitTests, givenSixteenBytePerPixelWhenAppendColorDepthThenCorrectDept } HWTEST2_F(BlitTests, givenIncorrectBytePerPixelWhenAppendColorDepthThenAbortIsThrown, IsGen12LP) { - using XY_BLOCK_COPY_BLT = typename FamilyType::XY_BLOCK_COPY_BLT; auto bltCmd = FamilyType::cmdInitXyBlockCopyBlt; BlitProperties properties = {}; properties.bytesPerPixel = 48; @@ -79,7 +78,6 @@ HWTEST2_F(BlitTests, givenIncorrectBytePerPixelWhenAppendColorDepthThenAbortIsTh } HWTEST2_F(BlitTests, givenSrcAndDestinationImagesWhenAppendSliceOffsetsThenAddressAreCorectOffseted, IsGen12LP) { - using XY_COPY_BLT = typename FamilyType::XY_COPY_BLT; auto gmm = std::make_unique(pDevice->getGmmHelper()); MockGraphicsAllocation mockAllocationSrc(0, 1u /*num gmms*/, AllocationType::internalHostMemory, reinterpret_cast(0x1234), 0x1000, 0, sizeof(uint32_t), @@ -117,7 +115,6 @@ HWTEST2_F(BlitTests, givenSrcAndDestinationImagesWhenAppendSliceOffsetsThenAddre } HWTEST2_F(BlitTests, givenInputAndDefaultSlicePitchWhenAppendBlitCommandsForImagesThenSlicePitchesAreCorrect, IsGen12LP) { - using XY_COPY_BLT = typename FamilyType::XY_COPY_BLT; MockGraphicsAllocation mockAllocationSrc(0, 1u /*num gmms*/, AllocationType::internalHostMemory, reinterpret_cast(0x1234), 0x1000, 0, sizeof(uint32_t), @@ -176,7 +173,6 @@ struct MyMockResourecInfo : public GmmResourceInfo { }; HWTEST2_F(BlitTests, givenTiledSrcAndDestinationImagesWhenAppendImageCommandsThenPitchIsValueFromGmm, IsGen12LP) { - using XY_COPY_BLT = typename FamilyType::XY_COPY_BLT; auto gmm = std::make_unique(pDevice->getGmmHelper()); GMM_RESCREATE_PARAMS gmmParams = {}; auto myResourecInfo = std::make_unique(pDevice->getRootDeviceEnvironment().getGmmClientContext(), &gmmParams); @@ -207,7 +203,6 @@ HWTEST2_F(BlitTests, givenTiledSrcAndDestinationImagesWhenAppendImageCommandsThe } HWTEST2_F(BlitTests, givenLinearSrcAndDestinationImagesWhenAppendImageCommandsThenPitchIsValueFromProperties, IsGen12LP) { - using XY_COPY_BLT = typename FamilyType::XY_COPY_BLT; auto gmm = std::make_unique(pDevice->getGmmHelper()); GMM_RESCREATE_PARAMS gmmParams = {}; auto myResourecInfo = std::make_unique(pDevice->getRootDeviceEnvironment().getGmmClientContext(), &gmmParams); @@ -250,7 +245,6 @@ HWTEST2_F(BlitTests, givenGen12LpPlatformWhenPreBlitCommandWARequiredThenReturns } HWTEST2_F(BlitTests, givenGen12LpPlatformWhenEstimatePreBlitCommandSizeThenSizeOfFlushIsReturned, IsGen12LP) { - using MI_FLUSH_DW = typename FamilyType::MI_FLUSH_DW; EncodeDummyBlitWaArgs waArgs{false, &(pDevice->getRootDeviceEnvironmentRef())}; EXPECT_EQ(EncodeMiFlushDW::getCommandSizeWithWa(waArgs), BlitCommandsHelper::estimatePreBlitCommandSize()); } diff --git a/shared/test/unit_test/preemption/test_preemption_xe2_and_later.cpp b/shared/test/unit_test/preemption/test_preemption_xe2_and_later.cpp index 675c6ba0d2..386945099b 100644 --- a/shared/test/unit_test/preemption/test_preemption_xe2_and_later.cpp +++ b/shared/test/unit_test/preemption/test_preemption_xe2_and_later.cpp @@ -119,8 +119,6 @@ HWTEST2_F(Xe2MidThreadPreemptionTests, givenMidThreadPreemptionWhenProgrammingPr } HWTEST2_F(Xe2ThreadGroupPreemptionTests, givenThreadGroupPreemptionWhenProgrammingPreemptionPreambleThenExpectNoCsrCommandDispatched, IsAtLeastXe2HpgCore) { - using STATE_CONTEXT_DATA_BASE_ADDRESS = typename FamilyType::STATE_CONTEXT_DATA_BASE_ADDRESS; - size_t cmdSize = PreemptionHelper::getRequiredPreambleSize(*device); EXPECT_EQ(0u, cmdSize); diff --git a/shared/test/unit_test/utilities/software_tags_manager_tests.cpp b/shared/test/unit_test/utilities/software_tags_manager_tests.cpp index 2630d35a40..7545f07580 100644 --- a/shared/test/unit_test/utilities/software_tags_manager_tests.cpp +++ b/shared/test/unit_test/utilities/software_tags_manager_tests.cpp @@ -179,7 +179,6 @@ HWTEST_F(SoftwareTagsManagerTests, givenSoftwareManagerWithMaxTagsReachedWhenTag } HWTEST_F(SoftwareTagsManagerTests, givenSoftwareManagerWithMaxHeapReachedWhenTagIsInsertedThenItIsNotSuccessful) { - using MI_NOOP = typename FamilyType::MI_NOOP; initializeTestCmdStream(); diff --git a/shared/test/unit_test/xe2_hpg_core/compute_mode_tests_xe2_hpg_core.cpp b/shared/test/unit_test/xe2_hpg_core/compute_mode_tests_xe2_hpg_core.cpp index ad5940d72d..078d614caf 100644 --- a/shared/test/unit_test/xe2_hpg_core/compute_mode_tests_xe2_hpg_core.cpp +++ b/shared/test/unit_test/xe2_hpg_core/compute_mode_tests_xe2_hpg_core.cpp @@ -202,7 +202,6 @@ XE2_HPG_CORETEST_F(ComputeModeRequirementsXe2HpgCore, giventhreadArbitrationPoli XE2_HPG_CORETEST_F(ComputeModeRequirementsXe2HpgCore, givenComputeModeProgrammingWhenLargeGrfModeChangeIsRequiredThenCorrectCommandsAreAdded) { setUpImpl(); using STATE_COMPUTE_MODE = typename FamilyType::STATE_COMPUTE_MODE; - using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL; auto cmdsSize = sizeof(STATE_COMPUTE_MODE); char buff[1024]; @@ -258,7 +257,6 @@ XE2_HPG_CORETEST_F(ComputeModeRequirementsXe2HpgCore, givenComputeModeProgrammin XE2_HPG_CORETEST_F(ComputeModeRequirementsXe2HpgCore, givenComputeModeProgrammingWhenRequiredGRFNumberIsGreaterThan128ThenLargeGRFModeIsProgrammed) { setUpImpl(); using STATE_COMPUTE_MODE = typename FamilyType::STATE_COMPUTE_MODE; - using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL; auto cmdsSize = sizeof(STATE_COMPUTE_MODE); char buff[1024]; @@ -280,8 +278,6 @@ XE2_HPG_CORETEST_F(ComputeModeRequirementsXe2HpgCore, givenComputeModeProgrammin XE2_HPG_CORETEST_F(ComputeModeRequirementsXe2HpgCore, givenFlushWithoutSharedHandlesWhenPreviouslyUsedThenPcAndSCMAreNotProgrammed) { setUpImpl(); - using STATE_COMPUTE_MODE = typename FamilyType::STATE_COMPUTE_MODE; - using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL; auto graphicAlloc = csr->getMemoryManager()->allocateGraphicsMemoryWithProperties(MockAllocationProperties{csr->getRootDeviceIndex(), MemoryConstants::pageSize}); IndirectHeap stream(graphicAlloc); @@ -305,7 +301,6 @@ XE2_HPG_CORETEST_F(ComputeModeRequirementsXe2HpgCore, givenFlushWithoutSharedHan XE2_HPG_CORETEST_F(ComputeModeRequirementsXe2HpgCore, givenComputeModeCmdSizeWhenLargeGrfModeChangeIsRequiredThenSCMCommandSizeIsCalculated) { setUpImpl(); using STATE_COMPUTE_MODE = typename FamilyType::STATE_COMPUTE_MODE; - using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL; auto cmdSize = sizeof(STATE_COMPUTE_MODE); diff --git a/shared/test/unit_test/xe2_hpg_core/gfx_core_helper_tests_xe2_hpg_core.cpp b/shared/test/unit_test/xe2_hpg_core/gfx_core_helper_tests_xe2_hpg_core.cpp index 477111bfec..3d1d1628d6 100644 --- a/shared/test/unit_test/xe2_hpg_core/gfx_core_helper_tests_xe2_hpg_core.cpp +++ b/shared/test/unit_test/xe2_hpg_core/gfx_core_helper_tests_xe2_hpg_core.cpp @@ -781,8 +781,6 @@ XE2_HPG_CORETEST_F(GfxCoreHelperTestsXe2HpgCore, givenXe2HpgWhenCallIsMatrixMult } XE2_HPG_CORETEST_F(GfxCoreHelperTestsXe2HpgCore, givenNumGrfAndSimdSizeWhenAdjustingMaxWorkGroupSizeThenCorrectWorkGroupSizeIsReturned) { - using DefaultWalkerType = typename FamilyType::DefaultWalkerType; - using SIMD_SIZE = typename FamilyType::DefaultWalkerType::SIMD_SIZE; auto defaultMaxWorkGroupSize = 2048u; const auto &gfxCoreHelper = getHelper(); const auto &rootDeviceEnvironment = pDevice->getRootDeviceEnvironment(); diff --git a/shared/test/unit_test/xe2_hpg_core/test_encode_xe2_hpg_core.cpp b/shared/test/unit_test/xe2_hpg_core/test_encode_xe2_hpg_core.cpp index 7a101ff006..29d50a9543 100644 --- a/shared/test/unit_test/xe2_hpg_core/test_encode_xe2_hpg_core.cpp +++ b/shared/test/unit_test/xe2_hpg_core/test_encode_xe2_hpg_core.cpp @@ -291,7 +291,6 @@ using EncodeKernelXe2HpgCoreTest = Test; XE2_HPG_CORETEST_F(EncodeKernelXe2HpgCoreTest, givenNoFenceAsPostSyncOperationInComputeWalkerWhenEnqueueKernelIsCalledThenDoNotGenerateFenceCommands) { using DefaultWalkerType = typename FamilyType::DefaultWalkerType; - using MI_MEM_FENCE = typename FamilyType::MI_MEM_FENCE; DebugManagerStateRestore restore; debugManager.flags.ProgramGlobalFenceAsPostSyncOperationInComputeWalker.set(0); @@ -317,7 +316,6 @@ XE2_HPG_CORETEST_F(EncodeKernelXe2HpgCoreTest, givenNoFenceAsPostSyncOperationIn XE2_HPG_CORETEST_F(EncodeKernelXe2HpgCoreTest, givenFenceAsPostSyncOperationInComputeWalkerWhenEnqueueKernelIsCalledThenGenerateFenceCommands) { using DefaultWalkerType = typename FamilyType::DefaultWalkerType; - using MI_MEM_FENCE = typename FamilyType::MI_MEM_FENCE; DebugManagerStateRestore restore; debugManager.flags.ProgramGlobalFenceAsPostSyncOperationInComputeWalker.set(1); @@ -342,7 +340,6 @@ XE2_HPG_CORETEST_F(EncodeKernelXe2HpgCoreTest, givenFenceAsPostSyncOperationInCo XE2_HPG_CORETEST_F(EncodeKernelXe2HpgCoreTest, givenDefaultSettingForFenceAsPostSyncOperationInComputeWalkerWhenEnqueueKernelIsCalledThenGenerateFenceCommands) { using DefaultWalkerType = typename FamilyType::DefaultWalkerType; - using MI_MEM_FENCE = typename FamilyType::MI_MEM_FENCE; DebugManagerStateRestore restore; debugManager.flags.ProgramGlobalFenceAsPostSyncOperationInComputeWalker.set(-1); diff --git a/shared/test/unit_test/xe_hpc_core/dispatch_walker_tests_xe_hpc_core.cpp b/shared/test/unit_test/xe_hpc_core/dispatch_walker_tests_xe_hpc_core.cpp index 6b3d535165..a8c22d8b4a 100644 --- a/shared/test/unit_test/xe_hpc_core/dispatch_walker_tests_xe_hpc_core.cpp +++ b/shared/test/unit_test/xe_hpc_core/dispatch_walker_tests_xe_hpc_core.cpp @@ -20,7 +20,6 @@ using namespace NEO; using WalkerDispatchTestsXeHpcCore = ::testing::Test; XE_HPC_CORETEST_F(WalkerDispatchTestsXeHpcCore, givenXeHpcWhenEncodeAdditionalWalkerFieldsIsCalledThenComputeDispatchAllIsCorrectlySet) { - using COMPUTE_WALKER = typename FamilyType::COMPUTE_WALKER; DebugManagerStateRestore debugRestorer; auto walkerCmd = FamilyType::cmdInitGpgpuWalker; diff --git a/shared/test/unit_test/xe_hpc_core/test_encode_xe_hpc_core.cpp b/shared/test/unit_test/xe_hpc_core/test_encode_xe_hpc_core.cpp index 4bd0e7cb07..1245af51af 100644 --- a/shared/test/unit_test/xe_hpc_core/test_encode_xe_hpc_core.cpp +++ b/shared/test/unit_test/xe_hpc_core/test_encode_xe_hpc_core.cpp @@ -308,7 +308,6 @@ using EncodeKernelXeHpcCoreTest = Test; XE_HPC_CORETEST_F(EncodeKernelXeHpcCoreTest, givenNoFenceAsPostSyncOperationInComputeWalkerWhenEnqueueKernelIsCalledThenDoNotGenerateFenceCommands) { using DefaultWalkerType = typename FamilyType::DefaultWalkerType; - using MI_MEM_FENCE = typename FamilyType::MI_MEM_FENCE; DebugManagerStateRestore restore; debugManager.flags.ProgramGlobalFenceAsPostSyncOperationInComputeWalker.set(0); @@ -334,7 +333,6 @@ XE_HPC_CORETEST_F(EncodeKernelXeHpcCoreTest, givenNoFenceAsPostSyncOperationInCo XE_HPC_CORETEST_F(EncodeKernelXeHpcCoreTest, givenFenceAsPostSyncOperationInComputeWalkerWhenEnqueueKernelIsCalledThenGenerateFenceCommands) { using DefaultWalkerType = typename FamilyType::DefaultWalkerType; - using MI_MEM_FENCE = typename FamilyType::MI_MEM_FENCE; DebugManagerStateRestore restore; debugManager.flags.ProgramGlobalFenceAsPostSyncOperationInComputeWalker.set(1); diff --git a/shared/test/unit_test/xe_hpg_core/dg2/compute_mode_tests_dg2.cpp b/shared/test/unit_test/xe_hpg_core/dg2/compute_mode_tests_dg2.cpp index b5ef711fd9..40244c9375 100644 --- a/shared/test/unit_test/xe_hpg_core/dg2/compute_mode_tests_dg2.cpp +++ b/shared/test/unit_test/xe_hpg_core/dg2/compute_mode_tests_dg2.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2023 Intel Corporation + * Copyright (C) 2021-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -124,7 +124,6 @@ HWTEST2_F(ComputeModeRequirements, GivenSingleCCSEnabledSetupThenCorrectCommands getCsrHw()->setupContext(ccsOsContext); using STATE_COMPUTE_MODE = typename FamilyType::STATE_COMPUTE_MODE; - using FORCE_NON_COHERENT = typename STATE_COMPUTE_MODE::FORCE_NON_COHERENT; using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL; auto cmdsSize = sizeof(STATE_COMPUTE_MODE) + sizeof(PIPE_CONTROL); diff --git a/shared/test/unit_test/xe_hpg_core/dg2/test_encode_dg2.cpp b/shared/test/unit_test/xe_hpg_core/dg2/test_encode_dg2.cpp index 5d64befe97..e48d7ef577 100644 --- a/shared/test/unit_test/xe_hpg_core/dg2/test_encode_dg2.cpp +++ b/shared/test/unit_test/xe_hpg_core/dg2/test_encode_dg2.cpp @@ -27,8 +27,6 @@ using CommandEncodeDG2Test = ::testing::Test; DG2TEST_F(CommandEncodeDG2Test, whenProgrammingStateComputeModeThenProperFieldsAreSet) { using STATE_COMPUTE_MODE = typename FamilyType::STATE_COMPUTE_MODE; - using PIXEL_ASYNC_COMPUTE_THREAD_LIMIT = typename STATE_COMPUTE_MODE::PIXEL_ASYNC_COMPUTE_THREAD_LIMIT; - using Z_PASS_ASYNC_COMPUTE_THREAD_LIMIT = typename STATE_COMPUTE_MODE::Z_PASS_ASYNC_COMPUTE_THREAD_LIMIT; uint8_t buffer[64]{}; MockExecutionEnvironment executionEnvironment{}; auto &rootDeviceEnvironment = *executionEnvironment.rootDeviceEnvironments[0]; @@ -60,7 +58,6 @@ DG2TEST_F(CommandEncodeDG2Test, whenProgrammingStateComputeModeThenProperFieldsA } DG2TEST_F(CommandEncodeDG2Test, whenProgramComputeWalkerThenSetL3PrefetchDefaultValue) { - using COMPUTE_WALKER = typename FamilyType::COMPUTE_WALKER; auto walkerCmd = FamilyType::cmdInitGpgpuWalker; auto idd = FamilyType::cmdInitInterfaceDescriptorData;