diff --git a/level_zero/core/test/unit_tests/fixtures/cmdlist_fixture.inl b/level_zero/core/test/unit_tests/fixtures/cmdlist_fixture.inl index 2ea56827b1..9e50faae24 100644 --- a/level_zero/core/test/unit_tests/fixtures/cmdlist_fixture.inl +++ b/level_zero/core/test/unit_tests/fixtures/cmdlist_fixture.inl @@ -158,7 +158,7 @@ void CmdListPipelineSelectStateFixture::testBody() { } currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); pipelineSelectList = findAll(cmdList.begin(), cmdList.end()); @@ -180,7 +180,7 @@ void CmdListPipelineSelectStateFixture::testBody() { } currentBuffer = ptrOffset(cmdQueueStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); pipelineSelectList = findAll(cmdList.begin(), cmdList.end()); @@ -211,7 +211,7 @@ void CmdListPipelineSelectStateFixture::testBody() { currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); pipelineSelectList = findAll(cmdList.begin(), cmdList.end()); @@ -236,7 +236,7 @@ void CmdListPipelineSelectStateFixture::testBody() { currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); pipelineSelectList = findAll(cmdList.begin(), cmdList.end()); @@ -266,7 +266,7 @@ void CmdListPipelineSelectStateFixture::testBody() { } currentBuffer = ptrOffset(cmdQueueStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); @@ -303,7 +303,7 @@ void CmdListPipelineSelectStateFixture::testBody() { currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); pipelineSelectList = findAll(cmdList.begin(), cmdList.end()); @@ -328,7 +328,7 @@ void CmdListPipelineSelectStateFixture::testBody() { currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); pipelineSelectList = findAll(cmdList.begin(), cmdList.end()); @@ -361,7 +361,7 @@ void CmdListPipelineSelectStateFixture::testBody() { currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); pipelineSelectList = findAll(cmdList.begin(), cmdList.end()); @@ -391,7 +391,7 @@ void CmdListPipelineSelectStateFixture::testBody() { } currentBuffer = ptrOffset(cmdQueueStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); pipelineSelectList = findAll(cmdList.begin(), cmdList.end()); @@ -426,7 +426,7 @@ void CmdListPipelineSelectStateFixture::testBody() { currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); pipelineSelectList = findAll(cmdList.begin(), cmdList.end()); @@ -448,7 +448,7 @@ void CmdListPipelineSelectStateFixture::testBody() { } currentBuffer = ptrOffset(cmdQueueStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); pipelineSelectList = findAll(cmdList.begin(), cmdList.end()); @@ -498,7 +498,7 @@ void CmdListPipelineSelectStateFixture::testBodyShareStateRegularImmediate() { } currentBuffer = ptrOffset(regularCommandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); pipelineSelectList = findAll(cmdList.begin(), cmdList.end()); @@ -520,7 +520,7 @@ void CmdListPipelineSelectStateFixture::testBodyShareStateRegularImmediate() { } currentBuffer = ptrOffset(cmdQueueStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); @@ -557,7 +557,7 @@ void CmdListPipelineSelectStateFixture::testBodyShareStateRegularImmediate() { } currentBuffer = ptrOffset(immediateCmdListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); pipelineSelectList = findAll(cmdList.begin(), cmdList.end()); @@ -573,7 +573,7 @@ void CmdListPipelineSelectStateFixture::testBodyShareStateRegularImmediate() { } currentBuffer = ptrOffset(csrStream.getCpuBase(), csrUsedBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (csrUsedAfter - csrUsedBefore))); pipelineSelectList = findAll(cmdList.begin(), cmdList.end()); @@ -624,7 +624,7 @@ void CmdListPipelineSelectStateFixture::testBodyShareStateImmediateRegular() { } currentBuffer = ptrOffset(immediateCmdListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); pipelineSelectList = findAll(cmdList.begin(), cmdList.end()); @@ -640,7 +640,7 @@ void CmdListPipelineSelectStateFixture::testBodyShareStateImmediateRegular() { } currentBuffer = ptrOffset(csrStream.getCpuBase(), csrUsedBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (csrUsedAfter - csrUsedBefore))); pipelineSelectList = findAll(cmdList.begin(), cmdList.end()); @@ -674,7 +674,7 @@ void CmdListPipelineSelectStateFixture::testBodyShareStateImmediateRegular() { } currentBuffer = ptrOffset(regularCommandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); pipelineSelectList = findAll(cmdList.begin(), cmdList.end()); @@ -696,7 +696,7 @@ void CmdListPipelineSelectStateFixture::testBodyShareStateImmediateRegular() { } currentBuffer = ptrOffset(cmdQueueStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); pipelineSelectList = findAll(cmdList.begin(), cmdList.end()); @@ -744,7 +744,7 @@ void CmdListPipelineSelectStateFixture::testBodySystolicAndScratchOnSecondComman EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueSize), (cmdQueueStream.getUsed() - queueSize))); @@ -824,7 +824,7 @@ void CmdListThreadArbitrationFixture::testBody() { EXPECT_EQ(NEO::ThreadArbitrationPolicy::AgeBased, cmdListFinalState.stateComputeMode.threadArbitrationPolicy.value); currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); @@ -846,7 +846,7 @@ void CmdListThreadArbitrationFixture::testBody() { EXPECT_EQ(NEO::ThreadArbitrationPolicy::AgeBased, csrState.stateComputeMode.threadArbitrationPolicy.value); currentBuffer = ptrOffset(cmdQueueStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); @@ -872,7 +872,7 @@ void CmdListThreadArbitrationFixture::testBody() { currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); @@ -892,7 +892,7 @@ void CmdListThreadArbitrationFixture::testBody() { currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); @@ -913,7 +913,7 @@ void CmdListThreadArbitrationFixture::testBody() { EXPECT_EQ(NEO::ThreadArbitrationPolicy::AgeBased, csrState.stateComputeMode.threadArbitrationPolicy.value); currentBuffer = ptrOffset(cmdQueueStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); @@ -939,7 +939,7 @@ void CmdListThreadArbitrationFixture::testBody() { currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); @@ -959,7 +959,7 @@ void CmdListThreadArbitrationFixture::testBody() { currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); @@ -982,7 +982,7 @@ void CmdListThreadArbitrationFixture::testBody() { currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); @@ -1003,7 +1003,7 @@ void CmdListThreadArbitrationFixture::testBody() { EXPECT_EQ(NEO::ThreadArbitrationPolicy::RoundRobinAfterDependency, csrState.stateComputeMode.threadArbitrationPolicy.value); currentBuffer = ptrOffset(cmdQueueStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); @@ -1028,7 +1028,7 @@ void CmdListThreadArbitrationFixture::testBody() { currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); @@ -1046,7 +1046,7 @@ void CmdListThreadArbitrationFixture::testBody() { EXPECT_EQ(NEO::ThreadArbitrationPolicy::RoundRobinAfterDependency, csrState.stateComputeMode.threadArbitrationPolicy.value); currentBuffer = ptrOffset(cmdQueueStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); @@ -1091,7 +1091,7 @@ void CmdListLargeGrfFixture::testBody() { EXPECT_EQ(0, cmdListFinalState.stateComputeMode.largeGrfMode.value); currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); @@ -1113,7 +1113,7 @@ void CmdListLargeGrfFixture::testBody() { EXPECT_EQ(0, csrState.stateComputeMode.largeGrfMode.value); currentBuffer = ptrOffset(cmdQueueStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); @@ -1139,7 +1139,7 @@ void CmdListLargeGrfFixture::testBody() { currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); @@ -1159,7 +1159,7 @@ void CmdListLargeGrfFixture::testBody() { currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); @@ -1180,7 +1180,7 @@ void CmdListLargeGrfFixture::testBody() { EXPECT_EQ(0, csrState.stateComputeMode.largeGrfMode.value); currentBuffer = ptrOffset(cmdQueueStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); @@ -1206,7 +1206,7 @@ void CmdListLargeGrfFixture::testBody() { currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); @@ -1226,7 +1226,7 @@ void CmdListLargeGrfFixture::testBody() { currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); @@ -1249,7 +1249,7 @@ void CmdListLargeGrfFixture::testBody() { currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); @@ -1270,7 +1270,7 @@ void CmdListLargeGrfFixture::testBody() { EXPECT_EQ(1, csrState.stateComputeMode.largeGrfMode.value); currentBuffer = ptrOffset(cmdQueueStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); @@ -1295,7 +1295,7 @@ void CmdListLargeGrfFixture::testBody() { currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); @@ -1313,7 +1313,7 @@ void CmdListLargeGrfFixture::testBody() { EXPECT_EQ(1, csrState.stateComputeMode.largeGrfMode.value); currentBuffer = ptrOffset(cmdQueueStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); diff --git a/level_zero/core/test/unit_tests/gen11/test_cmdqueue_thread_arbitration_policy_gen11.cpp b/level_zero/core/test/unit_tests/gen11/test_cmdqueue_thread_arbitration_policy_gen11.cpp index af4fb67a37..fd79ace46d 100644 --- a/level_zero/core/test/unit_tests/gen11/test_cmdqueue_thread_arbitration_policy_gen11.cpp +++ b/level_zero/core/test/unit_tests/gen11/test_cmdqueue_thread_arbitration_policy_gen11.cpp @@ -30,7 +30,7 @@ HWTEST2_F(CommandQueueThreadArbitrationPolicyTests, ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM; @@ -61,7 +61,7 @@ HWTEST2_F(CommandQueueThreadArbitrationPolicyTests, ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM; @@ -92,7 +92,7 @@ HWTEST2_F(CommandQueueThreadArbitrationPolicyTests, ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM; diff --git a/level_zero/core/test/unit_tests/gen12lp/test_cache_flush.cpp b/level_zero/core/test/unit_tests/gen12lp/test_cache_flush.cpp index c6225c28f9..befca87944 100644 --- a/level_zero/core/test/unit_tests/gen12lp/test_cache_flush.cpp +++ b/level_zero/core/test/unit_tests/gen12lp/test_cache_flush.cpp @@ -48,7 +48,7 @@ HWTEST2_F(CacheFlushTests, GivenCommandStreamWithSingleL3RangeAndNonZeroPostSync neoDevice->getRootDeviceEnvironment()); GenCmdList cmdList; - EXPECT_TRUE(FamilyType::PARSE::parseCommandBuffer( + EXPECT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream->getCpuBase(), 0), cmdStream->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); diff --git a/level_zero/core/test/unit_tests/gen12lp/test_cmdlist_gen12lp.cpp b/level_zero/core/test/unit_tests/gen12lp/test_cmdlist_gen12lp.cpp index b449d4f629..db136ad47f 100644 --- a/level_zero/core/test/unit_tests/gen12lp/test_cmdlist_gen12lp.cpp +++ b/level_zero/core/test/unit_tests/gen12lp/test_cmdlist_gen12lp.cpp @@ -50,7 +50,7 @@ HWTEST2_F(CommandListCreate, givenAllocationsWhenApplyRangesBarrierThenCheckWhet const size_t sizes[] = {size}; commandList->applyMemoryRangesBarrier(1, sizes, ranges); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->commandContainer.getCommandStream()->getCpuBase(), 0), commandList->commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); if (hardwareInfo.capabilityTable.supportCacheFlushAfterWalker) { @@ -185,7 +185,7 @@ HWTEST2_F(CommandListCreate, GivenHostMemoryInSvmManagerWhenAppendingMemoryBarri ASSERT_NE(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset( commandList->commandContainer.getCommandStream()->getCpuBase(), 0), @@ -248,7 +248,7 @@ HWTEST2_F(CommandListCreate, GivenHostMemoryWhenAppendingMemoryBarrierThenAddres ASSERT_NE(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset( commandList->commandContainer.getCommandStream()->getCpuBase(), 0), @@ -301,7 +301,7 @@ HWTEST2_F(CommandListCreate, givenAllocationsWhenApplyRangesBarrierWithInvalidAd const size_t sizes[] = {2 * pRangeSizes}; commandList->applyMemoryRangesBarrier(1, sizes, pRanges); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->commandContainer.getCommandStream()->getCpuBase(), 0), commandList->commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_EQ(cmdList.end(), itor); @@ -334,7 +334,7 @@ HWTEST2_F(CommandListCreate, givenAllocationsWhenApplyRangesBarrierWithInvalidAd const size_t sizes[] = {pRangeSizes}; commandList->applyMemoryRangesBarrier(1, sizes, pRanges); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->commandContainer.getCommandStream()->getCpuBase(), 0), commandList->commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_EQ(cmdList.end(), itor); @@ -420,7 +420,7 @@ GEN12LPTEST_F(CommandListGen12LpStateComputeModeTrackingTest, } auto currentBuffer = ptrOffset(commandListStream.getCpuBase(), sizeBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, currentBuffer, (sizeAfter - sizeBefore))); stateComputeModeList = findAll(cmdList.begin(), cmdList.end()); diff --git a/level_zero/core/test/unit_tests/gen9/test_cmdlist_append_launch_kernel_gen9.cpp b/level_zero/core/test/unit_tests/gen9/test_cmdlist_append_launch_kernel_gen9.cpp index 4048ed3b7d..dd4b9ab65a 100644 --- a/level_zero/core/test/unit_tests/gen9/test_cmdlist_append_launch_kernel_gen9.cpp +++ b/level_zero/core/test/unit_tests/gen9/test_cmdlist_append_launch_kernel_gen9.cpp @@ -34,7 +34,7 @@ HWTEST2_F(CommandListAppendLaunchKernel, givenKernelWithSLMThenL3IsProgrammedWit auto usedSpaceAfter = commandList->getCmdContainer().getCommandStream()->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); bool foundL3 = false; diff --git a/level_zero/core/test/unit_tests/gen9/test_cmdlist_append_range_barrier_gen9.cpp b/level_zero/core/test/unit_tests/gen9/test_cmdlist_append_range_barrier_gen9.cpp index e2b3641df5..12c79a808b 100644 --- a/level_zero/core/test/unit_tests/gen9/test_cmdlist_append_range_barrier_gen9.cpp +++ b/level_zero/core/test/unit_tests/gen9/test_cmdlist_append_range_barrier_gen9.cpp @@ -50,7 +50,7 @@ HWTEST2_F(CommandListAppendGen9, WhenAppendingMemoryRangesBarrierThenPipeControl ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset( commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), @@ -104,7 +104,7 @@ HWTEST2_F(CommandListAppendGen9, givenSignalEventWhenAppendingMemoryRangesBarrie // Ensure we have two pipe controls: one for barrier, one for signal GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL; auto itor = findAll(cmdList.begin(), cmdList.end()); diff --git a/level_zero/core/test/unit_tests/gen9/test_cmdlist_gen9.cpp b/level_zero/core/test/unit_tests/gen9/test_cmdlist_gen9.cpp index 0dc195e9c3..751ecb121c 100644 --- a/level_zero/core/test/unit_tests/gen9/test_cmdlist_gen9.cpp +++ b/level_zero/core/test/unit_tests/gen9/test_cmdlist_gen9.cpp @@ -35,7 +35,7 @@ HWTEST2_F(CommandListProgramL3, givenAllocationsWhenProgramL3ThenMmioIsAppended, commandList->programL3(false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); bool found = false; auto miLoadImm = findAll(cmdList.begin(), cmdList.end()); @@ -64,7 +64,7 @@ HWTEST2_F(CommandListProgramL3, givenAllocationsWhenProgramL3WithSlmThenMmioIsAp commandList->programL3(true); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); bool found = false; auto miLoadImm = findAll(cmdList.begin(), cmdList.end()); @@ -94,7 +94,7 @@ HWTEST2_F(CommandListProgramL3, givenAllocationsWhenProgramL3WithoutSlmThenMmioI commandList->programL3(false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); bool found = false; auto miLoadImm = findAll(cmdList.begin(), cmdList.end()); diff --git a/level_zero/core/test/unit_tests/gen9/test_cmdqueue_enqueuecommandlist_gen9.cpp b/level_zero/core/test/unit_tests/gen9/test_cmdqueue_enqueuecommandlist_gen9.cpp index bd18e02e70..792e763365 100644 --- a/level_zero/core/test/unit_tests/gen9/test_cmdqueue_enqueuecommandlist_gen9.cpp +++ b/level_zero/core/test/unit_tests/gen9/test_cmdqueue_enqueuecommandlist_gen9.cpp @@ -54,7 +54,7 @@ GEN9TEST_F(CommandQueueExecuteCommandListsGen9, WhenExecutingCmdListsThenPipelin ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); using MEDIA_VFE_STATE = typename FamilyType::MEDIA_VFE_STATE; @@ -97,7 +97,7 @@ GEN9TEST_F(CommandQueueExecuteCommandListsGen9, WhenExecutingCmdListsThenStateBa ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); using STATE_BASE_ADDRESS = typename FamilyType::STATE_BASE_ADDRESS; @@ -149,7 +149,7 @@ GEN9TEST_F(CommandQueueExecuteCommandListsGen9, WhenExecutingCmdListsThenMidThre ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); using STATE_SIP = typename FamilyType::STATE_SIP; using GPGPU_CSR_BASE_ADDRESS = typename FamilyType::GPGPU_CSR_BASE_ADDRESS; @@ -202,7 +202,7 @@ GEN9TEST_F(CommandQueueExecuteCommandListsGen9, GivenCmdListsWithDifferentPreemp ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, commandQueue->commandStream.getCpuBase(), usedSpaceAfter)); using STATE_SIP = typename FamilyType::STATE_SIP; using GPGPU_CSR_BASE_ADDRESS = typename FamilyType::GPGPU_CSR_BASE_ADDRESS; diff --git a/level_zero/core/test/unit_tests/gen9/test_cmdqueue_gen9.cpp b/level_zero/core/test/unit_tests/gen9/test_cmdqueue_gen9.cpp index 82889246d1..adb35004ff 100644 --- a/level_zero/core/test/unit_tests/gen9/test_cmdqueue_gen9.cpp +++ b/level_zero/core/test/unit_tests/gen9/test_cmdqueue_gen9.cpp @@ -33,7 +33,7 @@ HWTEST2_F(CommandQueueThreadArbitrationPolicyTests, ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM; @@ -64,7 +64,7 @@ HWTEST2_F(CommandQueueThreadArbitrationPolicyTests, ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM; @@ -95,7 +95,7 @@ HWTEST2_F(CommandQueueThreadArbitrationPolicyTests, ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM; diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_1.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_1.cpp index e5752f30e5..e5d8e72e04 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_1.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_1.cpp @@ -1765,7 +1765,7 @@ HWTEST2_F(CommandListCreate, givenInOrderExecutionWhenDispatchingRelaxedOrdering cmdList->appendLaunchKernel(kernel.toHandle(), groupCount, nullptr, 0, nullptr, launchParams, false); GenCmdList genCmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( genCmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); @@ -2612,7 +2612,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandListCreate, whenCommandListIsCreatedThenPCAnd ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); auto itorPc = find(cmdList.begin(), cmdList.end()); @@ -2655,7 +2655,7 @@ HWTEST_F(CommandListCreate, givenCommandListWithCopyOnlyWhenCreatedThenStateBase auto &commandContainer = commandList->getCmdContainer(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -2674,7 +2674,7 @@ HWTEST_F(CommandListCreate, givenCommandListWithCopyOnlyWhenSetBarrierThenMiFlus auto &commandContainer = commandList->getCmdContainer(); commandList->appendBarrier(nullptr, 0, nullptr, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -2697,7 +2697,7 @@ HWTEST_F(CommandListCreate, givenImmediateCommandListWithCopyOnlyWhenSetBarrierT auto &commandContainer = commandList->getCmdContainer(); commandList->appendBarrier(nullptr, 0, nullptr, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -2735,7 +2735,7 @@ HWTEST_F(CommandListCreate, givenBindlessModeDisabledWhenCommandListsResetThenSb auto usedAfter = commandList->getCmdContainer().getCommandStream()->getUsed(); EXPECT_EQ(ZE_RESULT_SUCCESS, returnValue); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedAfter)); auto itor = find(cmdList.begin(), cmdList.end()); @@ -2751,7 +2751,7 @@ HWTEST_F(CommandListCreate, givenCommandListWithCopyOnlyWhenResetThenStateBaseAd commandList->reset(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -2765,7 +2765,7 @@ HWTEST_F(CommandListCreate, givenCommandListWhenSetBarrierThenPipeControlIsProgr auto &commandContainer = commandList->getCmdContainer(); commandList->appendBarrier(nullptr, 0, nullptr, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -2781,7 +2781,7 @@ HWTEST2_F(CommandListCreate, givenCommandListWhenAppendingBarrierThenPipeControl returnValue = commandList->appendBarrier(nullptr, 0, nullptr, false); EXPECT_EQ(returnValue, ZE_RESULT_SUCCESS); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), commandContainer.getCommandStream()->getUsed() - usedBefore)); @@ -2801,7 +2801,7 @@ HWTEST2_F(CommandListCreate, givenCommandListWhenAppendingBarrierThenPipeControl returnValue = commandList->appendBarrier(nullptr, 0, nullptr, false); EXPECT_EQ(returnValue, ZE_RESULT_SUCCESS); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), commandContainer.getCommandStream()->getUsed() - usedBefore)); @@ -2845,7 +2845,7 @@ HWTEST2_F(CommandListCreate, givenCopyCommandListWhenProfilingBeforeCommandForCo EXPECT_EQ(1u, event->getPacketsInUse()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -2880,7 +2880,7 @@ HWTEST2_F(CommandListCreate, givenCopyCommandListWhenProfilingAfterCommandForCop auto globalOffset = event->getGlobalEndOffset(); auto baseAddr = event->getGpuAddress(device); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_2.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_2.cpp index e29fb22774..3ea9e77b4d 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_2.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_2.cpp @@ -619,7 +619,7 @@ HWTEST2_F(CommandListCreate, givenCommandListWhenMemoryCopyWithSignalEventsThenS EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -661,7 +661,7 @@ HWTEST2_F(CommandListCreate, givenCommandListWhenMemoryCopyWithSignalEventScopeS EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto iterator = findAll(cmdList.begin(), cmdList.end()); @@ -703,7 +703,7 @@ HWTEST2_F(CommandListCreate, givenCommandListWhenMemoryCopyWithSignalEventScopeS EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto iterator = findAll(cmdList.begin(), cmdList.end()); @@ -1124,7 +1124,7 @@ HWTEST2_F(CommandListCreate, givenCopyCommandListWhenCopyRegionWithinMaxBlitSize commandList->appendMemoryCopyBlitRegion(&srcAllocationData, &dstAllocationData, srcRegion, dstRegion, copySize, rowPitch, slicePitch, rowPitch, slicePitch, srcSize, dstSize, nullptr, 0, nullptr, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -1174,7 +1174,7 @@ HWTEST2_F(CommandListCreate, givenCopyCommandListWhenCopyRegionWithinMaxBlitSize uint32_t bytesPerPixel = NEO::BlitCommandsHelper::getAvailableBytesPerPixel(copySize.x, srcRegion.originX, dstRegion.originY, srcSize.x, dstSize.x); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); auto cmd = genCmdCast(*itor); @@ -1221,7 +1221,7 @@ HWTEST2_F(CommandListCreate, givenCopyCommandListWhenCopyRegionGreaterThanMaxBli commandList->appendMemoryCopyBlitRegion(&srcAllocationData, &dstAllocationData, srcRegion, dstRegion, copySize, rowPitch, slicePitch, rowPitch, slicePitch, srcSize, dstSize, nullptr, 0, nullptr, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -1728,7 +1728,7 @@ HWTEST2_F(PrimaryBatchBufferPreamblelessCmdListTest, EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueSizeUsed), cmdQueueStream.getUsed() - queueSizeUsed)); @@ -1825,7 +1825,7 @@ HWTEST2_F(PrimaryBatchBufferPreamblelessCmdListTest, EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueUsedSize), cmdQueueStream.getUsed() - queueUsedSize)); @@ -1914,7 +1914,7 @@ HWTEST2_F(PrimaryBatchBufferPreamblelessCmdListTest, EXPECT_EQ(gpuReturnAddress, bbStartCmd->getBatchBufferStartAddress()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueUsedSize), cmdQueueStream.getUsed() - queueUsedSize)); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_3.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_3.cpp index 854e8d7a04..ad58323a33 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_3.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_3.cpp @@ -346,7 +346,7 @@ HWTEST2_F(CommandListCreate, size_t usedAfter = commandContainer.getCommandStream()->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), usedAfter - usedBefore)); @@ -408,7 +408,7 @@ HWTEST2_F(CommandListCreate, size_t usedAfter = commandContainer.getCommandStream()->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), usedAfter - usedBefore)); @@ -465,7 +465,7 @@ HWTEST2_F(CommandListCreate, size_t usedAfter = commandContainer.getCommandStream()->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), usedAfter - usedBefore)); @@ -524,7 +524,7 @@ HWTEST2_F(CommandListCreate, size_t usedAfter = commandContainer.getCommandStream()->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), usedAfter - usedBefore)); @@ -578,7 +578,7 @@ HWTEST2_F(CommandListCreate, givenCommandListWhenMemoryFillHavingHostMemoryWithS EXPECT_EQ(ZE_RESULT_SUCCESS, result); size_t usedAfter = commandContainer.getCommandStream()->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), usedAfter - usedBefore)); @@ -635,7 +635,7 @@ HWTEST2_F(CommandListCreate, givenCommandListWhenMemoryFillHavingEventsWithDevic EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), usedAfter - usedBefore)); @@ -693,7 +693,7 @@ HWTEST2_F(CommandListCreate, givenCommandListWhenMemoryFillHavingEventsWithDevic size_t usedAfter = commandContainer.getCommandStream()->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), usedAfter - usedBefore)); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_4.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_4.cpp index 60e4b284d7..efa7504de3 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_4.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_4.cpp @@ -56,7 +56,7 @@ HWTEST2_F(CommandListCreate, givenCopyOnlyCommandListWhenAppendWriteGlobalTimest auto timestampAddress = timestampAlloc->getGpuAddress(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), commandStreamOffset), commandContainer.getCommandStream()->getUsed() - commandStreamOffset)); @@ -89,7 +89,7 @@ HWTEST2_F(CommandListCreate, givenCommandListWhenAppendWriteGlobalTimestampCalle commandList->appendWriteGlobalTimestamp(dstptr, nullptr, 0, nullptr); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), commandStreamOffset), commandContainer.getCommandStream()->getUsed() - commandStreamOffset)); @@ -123,7 +123,7 @@ HWTEST2_F(CommandListCreate, givenMovedDstptrWhenAppendWriteGlobalTimestampCalle commandList->appendWriteGlobalTimestamp(dstptr, nullptr, 0, nullptr); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), commandStreamOffset), commandContainer.getCommandStream()->getUsed() - commandStreamOffset)); @@ -769,7 +769,7 @@ HWTEST2_F(CommandListCreate, givenImmediateCopyOnlyCmdListWhenAppendBarrierThenI EXPECT_EQ(whiteBoxCmdList->csr->getNextBarrierCount(), 2u); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); NEO::EncodeDummyBlitWaArgs waArgs{true, &(device->getNEODevice()->getRootDeviceEnvironmentRef())}; @@ -811,7 +811,7 @@ HWTEST2_F(CommandListCreate, givenImmediateCopyOnlyCmdListWhenAppendWaitOnEvents EXPECT_EQ(whiteBoxCmdList->csr->getNextBarrierCount(), 2u); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); NEO::EncodeDummyBlitWaArgs waArgs{true, &(device->getNEODevice()->getRootDeviceEnvironmentRef())}; @@ -867,7 +867,7 @@ HWTEST_F(CommandListCreate, GivenCommandListWhenUnalignedPtrThenSingleCopyAdded) EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -1027,7 +1027,7 @@ HWTEST2_F(HostPointerManagerCommandListTest, givenCommandListWhenMemoryFillWithS EXPECT_EQ(ZE_RESULT_SUCCESS, ret); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto pc = genCmdCast(*cmdList.rbegin()); @@ -1079,7 +1079,7 @@ HWTEST2_F(HostPointerManagerCommandListTest, givenCommandListWhenMemoryFillWithS EXPECT_EQ(ZE_RESULT_SUCCESS, ret); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), offset), commandContainer.getCommandStream()->getUsed() - offset)); auto itor = find(cmdList.begin(), cmdList.end()); @@ -1154,7 +1154,7 @@ HWTEST2_F(HostPointerManagerCommandListTest, givenCommandListWhenMemoryFillWithS EXPECT_EQ(ZE_RESULT_SUCCESS, ret); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -1434,7 +1434,7 @@ HWTEST2_F(ImmediateCmdListSharedHeapsImmediateFlushTaskTest, size_t csrUsedAfter = csrStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), (csrUsedAfter - csrUsedBefore))); @@ -1457,7 +1457,7 @@ HWTEST2_F(ImmediateCmdListSharedHeapsImmediateFlushTaskTest, csrUsedAfter = csrStream.getUsed(); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), (csrUsedAfter - csrUsedBefore))); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_5.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_5.cpp index 41bba9df68..9887711aea 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_5.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_5.cpp @@ -567,7 +567,7 @@ HWTEST_F(CommandListCreate, givenCommandListWithCopyOnlyWhenAppendSignalEventThe event.signalScope = ZE_EVENT_SCOPE_FLAG_HOST; commandList->appendSignalEvent(event.toHandle()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -584,7 +584,7 @@ HWTEST_F(CommandListCreate, givenCommandListWhenAppendSignalEventWithScopeThenPi event.signalScope = ZE_EVENT_SCOPE_FLAG_HOST; commandList->appendSignalEvent(event.toHandle()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -624,7 +624,7 @@ HWTEST_F(CommandListCreate, givenCommandListWithCopyOnlyWhenAppendWaitEventsWith auto eventHandle = event.toHandle(); commandList->appendWaitOnEvents(1, &eventHandle, false, true, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -648,7 +648,7 @@ HWTEST_F(CommandListCreate, givenCommandListyWhenAppendWaitEventsWithDcFlushThen auto eventHandle = event.toHandle(); commandList->appendWaitOnEvents(1, &eventHandle, false, true, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -679,7 +679,7 @@ HWTEST_F(CommandListCreate, givenCommandListWhenAppendWaitEventsWithDcFlushThenP commandList->appendWaitOnEvents(2, events, false, true, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -737,7 +737,7 @@ HWTEST_F(CommandListCreate, givenAsyncCmdQueueAndImmediateCommandListWhenAppendW EXPECT_EQ(expectedUsed, usedBufferSize); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), startOffset), expectedUsed)); @@ -784,7 +784,7 @@ HWTEST_F(CommandListCreate, givenAsyncCmdQueueAndImmediateCommandListWhenAppendW EXPECT_EQ(expectedUsed, usedBufferSize); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), startOffset), expectedUsed)); @@ -820,7 +820,7 @@ HWTEST_F(CommandListCreate, givenFlushTaskFlagEnabledAndAsyncCmdQueueAndCopyOnly auto used = commandContainer.getCommandStream()->getUsed(); commandList->appendWaitOnEvents(2, events, false, true, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -854,7 +854,7 @@ HWTEST2_F(CommandListCreate, givenImmediateCommandListAndAlreadyCompletedEventWh static_cast *>(commandList.get())->addEventsToCmdList(2, events, false, false, true); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -1038,7 +1038,7 @@ HWTEST_F(CommandListCreate, givenAsyncCmdQueueAndCopyOnlyImmediateCommandListWhe commandList->appendWaitOnEvents(2, events, false, true, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -1107,7 +1107,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, cmdListStream.getCpuBase(), cmdListStream.getUsed())); @@ -1184,7 +1184,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, size_t queueAfter = cmdQueueStream.getUsed(); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -1234,7 +1234,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, queueAfter = cmdQueueStream.getUsed(); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -1246,7 +1246,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, size_t afterReset = cmdListStream.getUsed(); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, cmdListStream.getCpuBase(), afterReset)); @@ -1274,7 +1274,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, cmdListStream.getCpuBase(), cmdListStream.getUsed())); @@ -1343,7 +1343,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, EXPECT_EQ(static_cast(dsBaseAddress), finalState.dynamicStateBaseAddress.value); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, cmdListStream.getCpuBase(), cmdListStream.getUsed())); @@ -1388,7 +1388,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, EXPECT_EQ(csrState.dynamicStateSize.value, finalState.dynamicStateSize.value); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -1420,7 +1420,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, queueAfter = cmdQueueStream.getUsed(); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -1482,7 +1482,7 @@ HWTEST2_F(CommandListBindlessSshPrivateHeapTest, EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, cmdListStream.getCpuBase(), cmdListStream.getUsed())); @@ -1524,7 +1524,7 @@ HWTEST2_F(CommandListBindlessSshPrivateHeapTest, } cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdListStream.getCpuBase(), cmdListBefore), cmdListStream.getUsed() - cmdListBefore)); @@ -1561,7 +1561,7 @@ HWTEST2_F(CommandListBindlessSshPrivateHeapTest, size_t queueAfter = cmdQueueStream.getUsed(); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -1593,7 +1593,7 @@ HWTEST2_F(CommandListBindlessSshPrivateHeapTest, queueAfter = cmdQueueStream.getUsed(); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -1645,7 +1645,7 @@ HWTEST2_F(CommandListBindlessSshPrivateHeapTest, size_t queueAfter = cmdQueueStream.getUsed(); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -1703,7 +1703,7 @@ HWTEST2_F(CommandListBindlessSshPrivateHeapTest, EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, cmdListStream.getCpuBase(), cmdListStream.getUsed())); @@ -1724,7 +1724,7 @@ HWTEST2_F(CommandListBindlessSshPrivateHeapTest, size_t queueAfter = cmdQueueStream.getUsed(); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -1783,7 +1783,7 @@ HWTEST2_F(CommandListBindlessSshPrivateHeapTest, EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, cmdListStream.getCpuBase(), cmdListStream.getUsed())); @@ -1804,7 +1804,7 @@ HWTEST2_F(CommandListBindlessSshPrivateHeapTest, size_t queueAfter = cmdQueueStream.getUsed(); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -1838,7 +1838,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, cmdListStream.getCpuBase(), cmdListStream.getUsed())); @@ -1904,7 +1904,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, EXPECT_EQ(static_cast(dsBaseAddress), finalState.dynamicStateBaseAddress.value); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, cmdListStream.getCpuBase(), cmdListStream.getUsed())); @@ -1934,7 +1934,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, EXPECT_EQ(ZE_RESULT_SUCCESS, result); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdListStream.getCpuBase(), sizeBefore), cmdListStream.getUsed() - sizeBefore)); @@ -1971,7 +1971,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, size_t csrUsedAfter = csrStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdListImmediateStream.getCpuBase(), cmdListUsedBefore), cmdListUsedAfter - cmdListUsedBefore)); @@ -1997,7 +1997,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, } cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -2074,7 +2074,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, EXPECT_EQ(static_cast(dsBaseAddress), csrState.dynamicStateBaseAddress.value); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -2121,7 +2121,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, cmdListStream.getCpuBase(), cmdListStream.getUsed())); @@ -2210,7 +2210,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, EXPECT_EQ(csrState.statelessMocs.value, finalState.statelessMocs.value); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -2285,7 +2285,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, } cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -2373,7 +2373,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, } GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -2482,7 +2482,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, EXPECT_EQ(csrState.statelessMocs.value, finalState.statelessMocs.value); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -2528,7 +2528,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, size_t usedAfter = cmdStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream.getCpuBase(), usedBefore), usedAfter - usedBefore)); @@ -2559,7 +2559,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, EXPECT_EQ(static_cast(uncachedStatlessMocs), csrState.statelessMocs.value); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -2580,7 +2580,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, EXPECT_EQ(static_cast(uncachedStatlessMocs), csrState.statelessMocs.value); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrBefore), csrAfter - csrBefore)); @@ -2628,7 +2628,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, EXPECT_EQ(static_cast(cachedStatlessMocs), csrState.statelessMocs.value); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -2651,7 +2651,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, EXPECT_EQ(static_cast(uncachedStatlessMocs), csrState.statelessMocs.value); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrBefore), csrAfter - csrBefore)); @@ -2693,7 +2693,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, EXPECT_EQ(static_cast(uncachedStatlessMocs), csrState.statelessMocs.value); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrBefore), csrAfter - csrBefore)); @@ -2726,7 +2726,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, EXPECT_EQ(static_cast(cachedStatlessMocs), csrState.statelessMocs.value); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -2767,7 +2767,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, EXPECT_EQ(static_cast(cachedStatlessMocs), csrState.statelessMocs.value); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrBefore), csrAfter - csrBefore)); @@ -2800,7 +2800,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, EXPECT_EQ(static_cast(uncachedStatlessMocs), csrState.statelessMocs.value); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -2835,7 +2835,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, size_t queueAfter = cmdQueueStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -2849,7 +2849,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, queueAfter = cmdQueueStream.getUsed(); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -2952,7 +2952,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, size_t queueAfter = cmdQueueStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -2983,7 +2983,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, queueAfter = cmdQueueStream.getUsed(); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -3022,7 +3022,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, size_t queueAfter = cmdQueueStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -3055,7 +3055,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, EXPECT_NE(firstHeapSurfaceBaseAddress, secondHeapSurfaceBaseAddress); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdListStream.getCpuBase(), usedBefore), usedAfter - usedBefore)); @@ -3072,7 +3072,7 @@ HWTEST2_F(CommandListStateBaseAddressPrivateHeapTest, queueAfter = cmdQueueStream.getUsed(); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_6.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_6.cpp index 784562d809..19e89411dd 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_6.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_6.cpp @@ -357,7 +357,7 @@ HWTEST2_F(CommandListTest, givenComputeCommandListWhenRequiredFlushOperationThen EXPECT_EQ(sizeof(PIPE_CONTROL), usedAfter - usedBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), usedAfter - usedBefore)); @@ -411,7 +411,7 @@ HWTEST2_F(CommandListTest, givenComputeCommandListWhenRequiredFlushOperationAndN EXPECT_EQ(sizeof(PIPE_CONTROL), usedAfter - usedBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), usedAfter - usedBefore)); @@ -1215,7 +1215,7 @@ HWTEST2_F(ImmediateCmdListSharedHeapsTest, givenMultipleCommandListsUsingSharedH EXPECT_EQ(csrSshHeap, containerSshHeap); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), (csrUsedAfter - csrUsedBefore))); @@ -1284,7 +1284,7 @@ HWTEST2_F(ImmediateCmdListSharedHeapsTest, givenMultipleCommandListsUsingSharedH cmdList.clear(); sbaCmds.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), (csrUsedAfter - csrUsedBefore))); @@ -1407,7 +1407,7 @@ HWTEST2_F(CommandListStateBaseAddressGlobalStatelessTest, EXPECT_EQ(static_cast(statlessMocs), csrState.statelessMocs.value); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -1474,7 +1474,7 @@ HWTEST2_F(CommandListStateBaseAddressGlobalStatelessTest, EXPECT_EQ(static_cast(statlessMocs), csrState.statelessMocs.value); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -1533,7 +1533,7 @@ HWTEST2_F(CommandListStateBaseAddressGlobalStatelessTest, auto ssBaseAddress = globalSurfaceHeap->getHeapGpuBase(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -1568,7 +1568,7 @@ HWTEST2_F(CommandListStateBaseAddressGlobalStatelessTest, size_t csrUsedAfter = csrStream.getUsed(); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -1600,7 +1600,7 @@ HWTEST2_F(CommandListStateBaseAddressGlobalStatelessTest, auto ssBaseAddress = globalSurfaceHeap->getHeapGpuBase(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -1641,7 +1641,7 @@ HWTEST2_F(CommandListStateBaseAddressGlobalStatelessTest, size_t queueAfter = cmdQueueStream.getUsed(); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -1729,7 +1729,7 @@ HWTEST2_F(CommandListStateBaseAddressGlobalStatelessTest, EXPECT_EQ(static_cast(statlessMocs), csrState.statelessMocs.value); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -1837,7 +1837,7 @@ HWTEST2_F(CommandListStateBaseAddressGlobalStatelessTest, EXPECT_EQ(static_cast(statlessMocs), csrState.statelessMocs.value); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -1968,7 +1968,7 @@ HWTEST2_F(CommandListStateBaseAddressGlobalStatelessTest, EXPECT_EQ(static_cast(statlessMocs), csrState.statelessMocs.value); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -2068,7 +2068,7 @@ HWTEST2_F(CommandListStateBaseAddressGlobalStatelessTest, EXPECT_EQ(static_cast(statlessMocs), csrState.statelessMocs.value); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -2140,7 +2140,7 @@ HWTEST2_F(CommandListStateBaseAddressGlobalStatelessTest, EXPECT_EQ(static_cast(statlessMocs), csrState.statelessMocs.value); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -2251,7 +2251,7 @@ HWTEST2_F(CommandListStateBaseAddressGlobalStatelessTest, EXPECT_EQ(static_cast(statlessMocs), csrState.statelessMocs.value); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -2382,7 +2382,7 @@ HWTEST2_F(CommandListStateBaseAddressGlobalStatelessTest, EXPECT_EQ(static_cast(statlessMocs), csrState.statelessMocs.value); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -2446,7 +2446,7 @@ HWTEST2_F(CommandListStateBaseAddressGlobalStatelessTest, EXPECT_EQ(static_cast(statlessMocs), csrState.statelessMocs.value); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -2501,7 +2501,7 @@ HWTEST2_F(CommandListStateBaseAddressGlobalStatelessTest, auto ssBaseAddress = globalSurfaceHeap->getHeapGpuBase(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), queueBefore), queueAfter - queueBefore)); @@ -2555,7 +2555,7 @@ HWTEST2_F(CommandListStateBaseAddressGlobalStatelessTest, auto ssBaseAddress = globalSurfaceHeap->getHeapGpuBase(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_7.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_7.cpp index 17af613cfc..587ed27139 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_7.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_7.cpp @@ -110,7 +110,7 @@ HWTEST_F(CommandListCreate, WhenReservingSpaceThenCommandsAddedToBatchBuffer) { ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, commandStream->getCpuBase(), usedSpaceAfter)); auto itor = cmdList.begin(); @@ -556,7 +556,7 @@ HWTEST2_F(CommandListCreate, givenCommandListAndHostPointersWhenMemoryCopyCalled auto &commandContainer = commandList0->getCmdContainer(); GenCmdList genCmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( genCmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto pc = genCmdCast(*genCmdList.rbegin()); @@ -759,7 +759,7 @@ HWTEST2_F(FrontEndMultiReturnCommandListTest, givenFrontEndTrackingIsUsedWhenPro size_t usedAfter = cmdStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream.getCpuBase(), usedBefore), (usedAfter - usedBefore))); @@ -793,7 +793,7 @@ HWTEST2_F(FrontEndMultiReturnCommandListTest, givenFrontEndTrackingIsUsedWhenPro cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream.getCpuBase(), usedBefore), (usedAfter - usedBefore))); @@ -825,7 +825,7 @@ HWTEST2_F(FrontEndMultiReturnCommandListTest, givenFrontEndTrackingIsUsedWhenPro cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream.getCpuBase(), usedBefore), (usedAfter - usedBefore))); @@ -868,7 +868,7 @@ HWTEST2_F(FrontEndMultiReturnCommandListTest, givenFrontEndTrackingIsUsedWhenPro parseSpace *= 2; } - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(oldBase, usedBefore), parseSpace)); @@ -926,7 +926,7 @@ HWTEST2_F(FrontEndMultiReturnCommandListTest, givenFrontEndTrackingIsUsedWhenPro size_t usedAfter = cmdStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream.getCpuBase(), usedBefore), (usedAfter - usedBefore))); @@ -956,7 +956,7 @@ HWTEST2_F(FrontEndMultiReturnCommandListTest, givenFrontEndTrackingIsUsedWhenPro usedAfter = cmdStream.getUsed(); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream.getCpuBase(), usedBefore), (usedAfter - usedBefore))); @@ -990,7 +990,7 @@ HWTEST2_F(FrontEndMultiReturnCommandListTest, givenFrontEndTrackingIsUsedWhenPro parseSpace *= 2; } - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(oldBase, usedBefore), parseSpace)); @@ -1032,7 +1032,7 @@ HWTEST2_F(FrontEndMultiReturnCommandListTest, givenFrontEndTrackingIsUsedWhenPro cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream.getCpuBase(), usedBefore), (usedAfter - usedBefore))); @@ -1129,7 +1129,7 @@ HWTEST2_F(FrontEndMultiReturnCommandListTest, size_t usedAfter = cmdQueueStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), usedBefore), (usedAfter - usedBefore))); @@ -1378,7 +1378,7 @@ HWTEST2_F(FrontEndMultiReturnCommandListTest, size_t usedAfter = cmdQueueStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), usedBefore), (usedAfter - usedBefore))); @@ -1601,7 +1601,7 @@ HWTEST2_F(FrontEndMultiReturnCommandListTest, givenCmdQueueAndImmediateCmdListUs commandList->close(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(regularCmdListStream.getCpuBase(), usedBefore), (usedAfter - usedBefore))); @@ -1628,7 +1628,7 @@ HWTEST2_F(FrontEndMultiReturnCommandListTest, givenCmdQueueAndImmediateCmdListUs cmdList.clear(); feStateCmds.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), usedBefore), (usedAfter - usedBefore))); @@ -1663,7 +1663,7 @@ HWTEST2_F(FrontEndMultiReturnCommandListTest, givenCmdQueueAndImmediateCmdListUs cmdList.clear(); feStateCmds.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(immediateCmdListStream.getCpuBase(), usedBefore), (usedAfter - usedBefore))); @@ -1682,7 +1682,7 @@ HWTEST2_F(FrontEndMultiReturnCommandListTest, givenCmdQueueAndImmediateCmdListUs cmdList.clear(); feStateCmds.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), (csrUsedAfter - csrUsedBefore))); @@ -1729,7 +1729,7 @@ HWTEST2_F(FrontEndMultiReturnCommandListTest, givenCmdQueueAndImmediateCmdListUs } GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(immediateCmdListStream.getCpuBase(), usedBefore), (usedAfter - usedBefore))); @@ -1745,7 +1745,7 @@ HWTEST2_F(FrontEndMultiReturnCommandListTest, givenCmdQueueAndImmediateCmdListUs cmdList.clear(); feStateCmds.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), (csrUsedAfter - csrUsedBefore))); @@ -1780,7 +1780,7 @@ HWTEST2_F(FrontEndMultiReturnCommandListTest, givenCmdQueueAndImmediateCmdListUs feStateCmds.clear(); commandList->close(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(regularCmdListStream.getCpuBase(), usedBefore), (usedAfter - usedBefore))); @@ -1804,7 +1804,7 @@ HWTEST2_F(FrontEndMultiReturnCommandListTest, givenCmdQueueAndImmediateCmdListUs cmdList.clear(); feStateCmds.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdQueueStream.getCpuBase(), usedBefore), (usedAfter - usedBefore))); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_barrier.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_barrier.cpp index 54e78df03c..49e823d7c7 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_barrier.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_barrier.cpp @@ -32,7 +32,7 @@ HWTEST_F(CommandListAppendBarrier, WhenAppendingBarrierThenPipeControlIsGenerate ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), usedSpaceBefore), usedSpaceAfter - usedSpaceBefore)); @@ -55,7 +55,7 @@ HWTEST_F(CommandListAppendBarrier, GivenEventVsNoEventWhenAppendingBarrierThenCo ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList1, cmdList2; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList1, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList1, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); @@ -70,7 +70,7 @@ HWTEST_F(CommandListAppendBarrier, GivenEventVsNoEventWhenAppendingBarrierThenCo ASSERT_EQ(ZE_RESULT_SUCCESS, result); ASSERT_GT(usedSpaceAfter, usedSpaceBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList2, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList2, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); auto itor2 = findAll(cmdList2.begin(), cmdList2.end()); @@ -273,7 +273,7 @@ struct MultiTileCommandListAppendBarrierFixture : public MultiTileCommandListFix cmdBuffer = ptrOffset(cmdBuffer, parsedOffset); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdBuffer, postSyncSize)); @@ -378,7 +378,7 @@ struct MultiTileCommandListAppendBarrierFixture : public MultiTileCommandListFix registersSizeToParse += sizeof(MI_LOAD_REGISTER_IMM); } - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdBuffer, registersSizeToParse)); auto begin = cmdList.begin(); @@ -412,7 +412,7 @@ struct MultiTileCommandListAppendBarrierFixture : public MultiTileCommandListFix cmdBuffer = ptrOffset(cmdBuffer, (parsedOffset + postBarrierSynchronization)); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdBuffer, registersSizeToParse)); begin = cmdList.begin(); @@ -610,7 +610,7 @@ HWTEST2_F(MultiTileImmediateCommandListAppendBarrier, EXPECT_EQ(expectedSize, (usedAfterSize - usedBeforeSize)); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream->getCpuBase(), usedBeforeSize), (usedAfterSize - usedBeforeSize))); @@ -687,7 +687,7 @@ HWTEST2_F(MultiTileImmediateCommandListAppendBarrier, size_t usedAfterSize = cmdStream->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream->getCpuBase(), usedBeforeSize), (usedAfterSize - usedBeforeSize))); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_event_reset.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_event_reset.cpp index e08c121e5f..552119b594 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_event_reset.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_event_reset.cpp @@ -41,7 +41,7 @@ HWTEST_F(CommandListAppendEventReset, givenCmdlistWhenResetEventAppendedThenStor ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); @@ -82,7 +82,7 @@ HWTEST_F(CommandListAppendEventReset, givenCmdlistWhenResetEventWithTimeStampIsA ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); @@ -160,7 +160,7 @@ HWTEST_F(CommandListAppendEventReset, givenCopyOnlyCmdlistWhenResetEventAppended ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); @@ -301,7 +301,7 @@ HWTEST2_F(CommandListAppendUsedPacketSignalEvent, givenTimestampEventUsedInReset gpuAddress += ((maxPackets - 1) * event->getSinglePacketSize()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itorPC = findAll(cmdList.begin(), cmdList.end()); @@ -343,7 +343,7 @@ HWTEST2_F(CommandListAppendEventReset, givenEventWithHostScopeUsedInResetThenPip auto gpuAddress = event->getCompletionFieldGpuAddress(device); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itorPC = findAll(cmdList.begin(), cmdList.end()); @@ -402,7 +402,7 @@ HWTEST2_F(CommandListAppendUsedPacketSignalEvent, EXPECT_EQ(expectedSize, usedSize); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, cmdStream->getCpuBase(), usedSize)); @@ -471,7 +471,7 @@ HWTEST2_F(CommandListAppendUsedPacketSignalEvent, auto gpuAddress = event->getGpuAddress(device) + event->getContextEndOffset(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream->getCpuBase(), usedBeforeSize), expectedSize)); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_launch_kernel_1.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_launch_kernel_1.cpp index c0697747b8..2acc72ddef 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_launch_kernel_1.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_launch_kernel_1.cpp @@ -228,7 +228,7 @@ HWTEST2_F(CommandListAppendLaunchKernel, givenNotEnoughSpaceInCommandStreamWhenA EXPECT_EQ(2u, commandContainer.getCmdBufferAllocations().size()); GenCmdList cmdList; - FamilyType::PARSE::parseCommandBuffer(cmdList, bbEndPosition, 2 * sizeof(MI_BATCH_BUFFER_END)); + FamilyType::Parse::parseCommandBuffer(cmdList, bbEndPosition, 2 * sizeof(MI_BATCH_BUFFER_END)); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); } @@ -882,7 +882,7 @@ HWTEST2_F(CommandListAppendLaunchKernel, givenTimestampEventsWhenAppendingKernel EXPECT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - EXPECT_TRUE(FamilyType::PARSE::parseCommandBuffer( + EXPECT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); auto itor = find(cmdList.begin(), cmdList.end()); @@ -977,7 +977,7 @@ HWTEST2_F(CommandListAppendLaunchKernel, givenKernelLaunchWithTSEventAndScopeFla EXPECT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - EXPECT_TRUE(FamilyType::PARSE::parseCommandBuffer( + EXPECT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); auto itorPC = findAll(cmdList.begin(), cmdList.end()); @@ -1006,7 +1006,7 @@ HWTEST2_F(CommandListAppendLaunchKernel, givenForcePipeControlPriorToWalkerKeyTh EXPECT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdListBase; - EXPECT_TRUE(FamilyType::PARSE::parseCommandBuffer( + EXPECT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdListBase, ptrOffset(commandListBase->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); auto itorPC = findAll(cmdListBase.begin(), cmdListBase.end()); @@ -1027,7 +1027,7 @@ HWTEST2_F(CommandListAppendLaunchKernel, givenForcePipeControlPriorToWalkerKeyTh EXPECT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdListBaseWithDebugKey; - EXPECT_TRUE(FamilyType::PARSE::parseCommandBuffer( + EXPECT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdListBaseWithDebugKey, ptrOffset(commandListWithDebugKey->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); itorPC = findAll(cmdListBaseWithDebugKey.begin(), cmdListBaseWithDebugKey.end()); @@ -1123,7 +1123,7 @@ HWTEST_F(CommandListAppendLaunchKernel, givenIndirectDispatchWhenAppendingThenWo EXPECT_EQ(result, ZE_RESULT_SUCCESS); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -1252,7 +1252,7 @@ HWTEST_F(CommandListAppendLaunchKernel, givenCommandListWhenResetCalledThenState } GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -1313,7 +1313,7 @@ HWTEST_F(CommandListAppendLaunchKernel, givenSingleValidWaitEventsThenAddSemapho ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); auto itor = find(cmdList.begin(), cmdList.end()); @@ -1371,7 +1371,7 @@ HWTEST_F(CommandListAppendLaunchKernel, givenMultipleValidWaitEventsThenAddSemap ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); using MI_SEMAPHORE_WAIT = typename FamilyType::MI_SEMAPHORE_WAIT; auto itor = findAll(cmdList.begin(), cmdList.end()); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_launch_kernel_2.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_launch_kernel_2.cpp index c9f5488e73..24eb69471b 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_launch_kernel_2.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_launch_kernel_2.cpp @@ -96,7 +96,7 @@ HWTEST_F(CommandListDualStorage, givenIndirectDispatchWithSharedDualStorageMemor ASSERT_NE(nullptr, gpuAllocation); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); uint32_t regAddress = 0; @@ -268,7 +268,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, CommandListDualStorage, givenIndirectDispatchWithSh ASSERT_NE(nullptr, gpuAllocation); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); uint32_t regAddress = 0; @@ -410,7 +410,7 @@ HWTEST_F(CommandListAppendLaunchKernelSWTags, givenEnableSWTagsWhenAppendLaunchK ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), 0), usedSpaceAfter)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), 0), usedSpaceAfter)); auto noops = findAll(cmdList.begin(), cmdList.end()); EXPECT_EQ(6u, noops.size()); @@ -497,7 +497,7 @@ HWTEST_F(CommandListAppendLaunchKernelSWTags, givenEnableSWTagsWhenAppendEventRe ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), 0), usedSpaceAfter)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), 0), usedSpaceAfter)); auto noops = findAll(cmdList.begin(), cmdList.end()); uint32_t expecteNumberOfNops = 4u; EXPECT_EQ(expecteNumberOfNops, noops.size()); @@ -571,7 +571,7 @@ HWTEST_F(CommandListAppendLaunchKernelSWTags, givenEnableSWTagsWhenAppendSignalE ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), 0), usedSpaceAfter)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), 0), usedSpaceAfter)); auto noops = findAll(cmdList.begin(), cmdList.end()); uint32_t expecteNumberOfNops = 4u; EXPECT_EQ(expecteNumberOfNops, noops.size()); @@ -645,7 +645,7 @@ HWTEST_F(CommandListAppendLaunchKernelSWTags, givenEnableSWTagsWhenAppendWaitOnE ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), 0), usedSpaceAfter)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), 0), usedSpaceAfter)); auto noops = findAll(cmdList.begin(), cmdList.end()); uint32_t expecteNumberOfNops = 4u; EXPECT_EQ(expecteNumberOfNops, noops.size()); @@ -705,7 +705,7 @@ HWTEST_F(CommandListAppendLaunchKernelSWTags, givenEnableSWTagsWhenAppendMemoryC ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), 0), usedSpaceAfter)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), 0), usedSpaceAfter)); auto noops = findAll(cmdList.begin(), cmdList.end()); uint32_t expecteNumberOfNops = 6u; EXPECT_EQ(expecteNumberOfNops, noops.size()); @@ -766,7 +766,7 @@ HWTEST_F(CommandListAppendLaunchKernelSWTags, givenEnableSWTagsWhenAppendMemoryC ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), 0), usedSpaceAfter)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), 0), usedSpaceAfter)); auto noops = findAll(cmdList.begin(), cmdList.end()); uint32_t expecteNumberOfNops = 10u; EXPECT_EQ(expecteNumberOfNops, noops.size()); @@ -819,7 +819,7 @@ HWTEST_F(CommandListArbitrationPolicyTest, whenCreatingCommandListThenDefaultThr EXPECT_NE(nullptr, commandList->getCmdContainer().getCommandStream()); GenCmdList parsedCommandList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( parsedCommandList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM; @@ -851,7 +851,7 @@ HWTEST_F(CommandListArbitrationPolicyTest, whenCreatingCommandListThenChosenThre EXPECT_NE(nullptr, commandList->getCmdContainer().getCommandStream()); GenCmdList parsedCommandList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( parsedCommandList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM; @@ -883,7 +883,7 @@ HWTEST_F(CommandListArbitrationPolicyTest, whenCommandListIsResetThenOriginalThr uint64_t originalThreadArbitrationPolicy = std::numeric_limits::max(); { GenCmdList parsedCommandList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( parsedCommandList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM; @@ -905,7 +905,7 @@ HWTEST_F(CommandListArbitrationPolicyTest, whenCommandListIsResetThenOriginalThr { GenCmdList parsedCommandList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( parsedCommandList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM; @@ -1546,7 +1546,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, MultiTileCommandListAppendLaunchKernelXeHpCoreTest, EXPECT_EQ(4u, commandList->partitionCount); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, commandList->getCmdContainer().getCommandStream()->getCpuBase(), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itorWalker = find(cmdList.begin(), cmdList.end()); @@ -1571,7 +1571,7 @@ HWTEST2_F(MultiTileCommandListAppendLaunchKernelXeHpCoreTest, givenCooperativeKe ASSERT_EQ(ZE_RESULT_SUCCESS, result); auto sizeAfter = commandListWithNonCooperativeKernel->getCmdContainer().getCommandStream()->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandListWithNonCooperativeKernel->getCmdContainer().getCommandStream()->getCpuBase(), sizeBefore), sizeAfter - sizeBefore)); auto itorWalker = find(cmdList.begin(), cmdList.end()); auto cmd = genCmdCast(*itorWalker); @@ -1587,7 +1587,7 @@ HWTEST2_F(MultiTileCommandListAppendLaunchKernelXeHpCoreTest, givenCooperativeKe ASSERT_EQ(ZE_RESULT_SUCCESS, result); sizeAfter = commandListWithCooperativeKernel->getCmdContainer().getCommandStream()->getUsed(); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandListWithCooperativeKernel->getCmdContainer().getCommandStream()->getCpuBase(), sizeBefore), sizeAfter - sizeBefore)); itorWalker = find(cmdList.begin(), cmdList.end()); @@ -1613,7 +1613,7 @@ HWTEST2_F(MultiTileCommandListAppendLaunchKernelXeHpCoreTest, auto sizeAfter = cmdStream->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream->getCpuBase(), sizeBefore), sizeAfter - sizeBefore)); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_launch_kernel_3.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_launch_kernel_3.cpp index 3879a86a25..53b78e74db 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_launch_kernel_3.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_launch_kernel_3.cpp @@ -71,7 +71,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandListAppendLaunchKernel, givenFunctionWhenBind auto commandStream = commandList->getCmdContainer().getCommandStream(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, commandStream->getCpuBase(), commandStream->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, commandStream->getCpuBase(), commandStream->getUsed())); auto itorMIDL = find(cmdList.begin(), cmdList.end()); ASSERT_NE(itorMIDL, cmdList.end()); @@ -121,7 +121,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandListAppendLaunchKernel, givenEventsWhenAppend EXPECT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - EXPECT_TRUE(FamilyType::PARSE::parseCommandBuffer( + EXPECT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); auto itor = find(cmdList.begin(), cmdList.end()); @@ -169,7 +169,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandListAppendLaunchKernel, givenAppendLaunchMult auto usedSpaceAfter = commandList->getCmdContainer().getCommandStream()->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); auto itorWalker = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), itorWalker); @@ -199,7 +199,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandListAppendLaunchKernel, givenAppendLaunchMult auto usedSpaceAfter = commandList->getCmdContainer().getCommandStream()->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); auto itor = cmdList.begin(); @@ -1115,7 +1115,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenSubmittingThenProgramSemaphor immCmdList->appendLaunchKernel(kernel->toHandle(), groupCount, nullptr, 0, nullptr, launchParams, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); @@ -1147,7 +1147,7 @@ HWTEST2_F(InOrderCmdListTests, givenTimestmapEventWhenProgrammingBarrierThenDont immCmdList->appendBarrier(eventHandle, 0, nullptr, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); @@ -1179,7 +1179,7 @@ HWTEST2_F(InOrderCmdListTests, givenDebugFlagSetWhenDispatchingStoreDataImmThenP auto validateInterrupt = [&](bool interruptExpected) { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); @@ -1233,7 +1233,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenWaitingForEventFromPreviousAp immCmdList->appendLaunchKernel(kernel->toHandle(), groupCount, nullptr, 1, &eventHandle, launchParams, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); @@ -1268,7 +1268,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenWaitingForEventFromPreviousAp regularCmdList->appendLaunchKernel(kernel->toHandle(), groupCount, nullptr, 1, &eventHandle, launchParams, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); auto itor = find(cmdList.begin(), cmdList.end()); @@ -1307,7 +1307,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenWaitingForRegularEventFromPre immCmdList->appendMemoryCopy(deviceAlloc, ©Data, 1, nullptr, 1, &eventHandle, false, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); auto itor = find(cmdList.begin(), cmdList.end()); @@ -1338,7 +1338,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderCmdListWhenWaitingOnHostThenDontProgr immCmdList->appendLaunchKernel(kernel->toHandle(), groupCount, nullptr, 0, nullptr, launchParams, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); auto itor = find(cmdList.begin(), cmdList.end()); @@ -1377,7 +1377,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderEventModeWhenSubmittingThenProgramSem immCmdList->appendLaunchKernel(kernel->toHandle(), groupCount, nullptr, 2, waitlist, launchParams, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); @@ -1512,7 +1512,7 @@ HWTEST2_F(InOrderCmdListTests, givenCmdsChainingWhenDispatchingKernelThenProgram auto findSemaphores = [&](size_t expectedNumSemaphores) { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); auto cmds = findAll(cmdList.begin(), cmdList.end()); @@ -1734,7 +1734,7 @@ HWTEST2_F(InOrderCmdListTests, givenCmdsChainingFromAppendCopyWhenDispatchingKer auto findSemaphores = [&](size_t expectedNumSemaphores) { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); auto cmds = findAll(cmdList.begin(), cmdList.end()); @@ -1780,7 +1780,7 @@ HWTEST2_F(InOrderCmdListTests, givenCmdsChainingFromAppendCopyAndFlushRequiredWh auto findSemaphores = [&](size_t expectedNumSemaphores) { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); auto cmds = findAll(cmdList.begin(), cmdList.end()); EXPECT_EQ(expectedNumSemaphores, cmds.size()); }; @@ -1822,7 +1822,7 @@ HWTEST2_F(InOrderCmdListTests, givenEventWithRequiredPipeControlWhenDispatchingC immCmdList->appendMemoryCopy(alloc, alloc, 1, eventHandle, 0, nullptr, false, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); auto sdiItor = find(cmdList.begin(), cmdList.end()); @@ -1861,7 +1861,7 @@ HWTEST2_F(InOrderCmdListTests, givenEventWithRequiredPipeControlAndAllocFlushWhe immCmdList->appendMemoryCopy(©Data, ©Data, 1, eventHandle, 0, nullptr, false, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); auto sdiItor = find(cmdList.begin(), cmdList.end()); if (immCmdList->eventSignalPipeControl(false, immCmdList->getDcFlushRequired(events[0]->isSignalScope()))) { EXPECT_NE(cmdList.end(), sdiItor); @@ -1906,7 +1906,7 @@ HWTEST2_F(InOrderCmdListTests, givenCmdsChainingWhenDispatchingKernelWithRelaxed auto findConditionalBbStarts = [&](size_t expectedNumBbStarts) { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); auto cmds = findAll(cmdList.begin(), cmdList.end()); @@ -1947,7 +1947,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderEventModeWhenWaitingForEventFromPrevi { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); @@ -1993,7 +1993,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderEventModeWhenSubmittingFromDifferentC EXPECT_EQ(2u, ultCsr->makeResidentAllocations[&immCmdList1->inOrderExecInfo->getDeviceCounterAllocation()]); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), itor); @@ -2093,7 +2093,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenAddingRelaxedOrderingEventsTh immCmdList->addEventsToCmdList(0, nullptr, true, true, true); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream->getCpuBase(), offset), cmdStream->getUsed() - offset)); @@ -2132,7 +2132,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingWalkerThenSignalSy { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); auto walkerItor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), walkerItor); @@ -2152,7 +2152,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingWalkerThenSignalSy { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -2219,7 +2219,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingTimestampEventThen zeCommandListAppendLaunchKernel(immCmdList->toHandle(), kernel->toHandle(), &groupCount, events[0]->toHandle(), 0, nullptr); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); auto sdiItor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), sdiItor); @@ -2325,7 +2325,7 @@ HWTEST2_F(InOrderCmdListTests, givenRelaxedOrderingWhenProgrammingTimestampEvent { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), immCmdList->flushData[1])); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), immCmdList->flushData[1])); auto sdiItor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), sdiItor); @@ -2360,7 +2360,7 @@ HWTEST2_F(InOrderCmdListTests, givenRelaxedOrderingWhenProgrammingTimestampEvent { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), immCmdList->flushData[1]), (cmdStream->getUsed() - immCmdList->flushData[1]))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), immCmdList->flushData[1]), (cmdStream->getUsed() - immCmdList->flushData[1]))); // Relaxed Ordering registers auto lrrCmd = genCmdCast(*cmdList.begin()); @@ -2448,7 +2448,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingRegularEventThenCl immCmdList->appendLaunchKernel(kernel->toHandle(), groupCount, events[0]->toHandle(), 0, nullptr, launchParams, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); auto sdiItor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), sdiItor); @@ -2637,7 +2637,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingWalkerThenProgramP immCmdList->appendLaunchKernel(kernel->toHandle(), groupCount, nullptr, 0, nullptr, launchParams, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); auto walkerItor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), walkerItor); @@ -2686,7 +2686,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingKernelSplitThenPro immCmdList->appendMemoryCopy(unalignedPtr, unalignedPtr, ptrBaseSize - offset, nullptr, 0, nullptr, false, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); auto lastWalkerItor = reverseFind(cmdList.rbegin(), cmdList.rend()); ASSERT_NE(cmdList.rend(), lastWalkerItor); @@ -2731,7 +2731,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingAppendSignalEventT uint64_t inOrderSyncVa = immCmdList->inOrderExecInfo->getDeviceCounterAllocation().getGpuAddress(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -2801,7 +2801,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingNonKernelAppendThe immCmdList->appendEventReset(events[0]->toHandle()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -2819,7 +2819,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingNonKernelAppendThe immCmdList->appendMemoryRangesBarrier(1, &rangeSizes, ranges, nullptr, 0, nullptr); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -2834,7 +2834,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingNonKernelAppendThe immCmdList->appendWriteGlobalTimestamp(reinterpret_cast(ptr), nullptr, 0, nullptr); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -2899,7 +2899,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderRegularCmdListWhenProgrammingNonKerne regularCmdList->appendEventReset(events[0]->toHandle()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -2916,7 +2916,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderRegularCmdListWhenProgrammingNonKerne regularCmdList->appendMemoryRangesBarrier(1, &rangeSizes, ranges, nullptr, 0, nullptr); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -2931,7 +2931,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderRegularCmdListWhenProgrammingNonKerne regularCmdList->appendWriteGlobalTimestamp(reinterpret_cast(ptr), nullptr, 0, nullptr); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -2948,7 +2948,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderRegularCmdListWhenProgrammingNonKerne regularCmdList->appendWaitOnMemory(reinterpret_cast(&desc), ptr, 1, nullptr, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -2965,7 +2965,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderRegularCmdListWhenProgrammingNonKerne regularCmdList->appendWriteToMemory(reinterpret_cast(&desc), ptr, data); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -3001,7 +3001,7 @@ HWTEST2_F(InOrderCmdListTests, givenImmediateEventWhenWaitingFromRegularCmdListT } GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); auto semaphoreItor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), semaphoreItor); @@ -3046,7 +3046,7 @@ HWTEST2_F(InOrderCmdListTests, givenEventGeneratedByRegularCmdListWhenWaitingFro auto verifySemaphore = [&](uint64_t expectedValue) { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); auto semaphoreItor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), semaphoreItor); @@ -3102,7 +3102,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingKernelSplitThenDon immCmdList->appendMemoryCopy(unalignedPtr, unalignedPtr, ptrBaseSize - offset, nullptr, 0, nullptr, false, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); auto walkerItor = find(cmdList.begin(), cmdList.end()); @@ -3139,7 +3139,7 @@ HWTEST2_F(InOrderCmdListTests, givenCopyOnlyInOrderModeWhenProgrammingCopyThenSi immCmdList->appendMemoryCopy(©Data, ©Data, 1, nullptr, 0, nullptr, false, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -3172,7 +3172,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingComputeCopyThenDon immCmdList->appendMemoryCopy(alloc, alloc, 1, nullptr, 0, nullptr, false, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); auto walkerItor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), walkerItor); @@ -3200,7 +3200,7 @@ HWTEST2_F(InOrderCmdListTests, givenAlocFlushRequiredhenProgrammingComputeCopyTh immCmdList->appendMemoryCopy(alignedPtr, alignedPtr, 1, nullptr, 0, nullptr, false, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); auto walkerItor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), walkerItor); @@ -3234,7 +3234,7 @@ HWTEST2_F(InOrderCmdListTests, givenCopyOnlyInOrderModeWhenProgrammingFillThenSi immCmdList->appendMemoryFill(data, data, 1, size, nullptr, 0, nullptr, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -3272,7 +3272,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingFillWithSplitAndOu immCmdList->appendMemoryFill(data, data, 1, (size / 2) + 1, events[0]->toHandle(), 0, nullptr, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); auto walkerItor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), walkerItor); @@ -3321,7 +3321,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingFillWithSplitAndWi immCmdList->appendMemoryFill(data, data, 1, (size / 2) + 1, nullptr, 0, nullptr, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); auto walkerItor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), walkerItor); @@ -3363,7 +3363,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingFillWithoutSplitTh immCmdList->appendMemoryFill(data, data, 1, size, nullptr, 0, nullptr, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); auto walkerItor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), walkerItor); @@ -3399,7 +3399,7 @@ HWTEST2_F(InOrderCmdListTests, givenCopyOnlyInOrderModeWhenProgrammingCopyRegion immCmdList->appendMemoryCopyRegion(©Data, ®ion, 1, 1, ©Data, ®ion, 1, 1, nullptr, 0, nullptr, false, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -3439,7 +3439,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingAppendWaitOnEvents zeCommandListAppendWaitOnEvents(immCmdList->toHandle(), 1, &eventHandle); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -3483,7 +3483,7 @@ HWTEST2_F(InOrderCmdListTests, givenRegularInOrderCmdListWhenProgrammingAppendWa zeCommandListAppendWaitOnEvents(regularCmdList->toHandle(), 1, &eventHandle); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -3526,7 +3526,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingCounterWithOverflo immCmdList->appendLaunchKernel(kernel->toHandle(), groupCount, eventHandle, 0, nullptr, launchParams, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); auto walkerItor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), walkerItor); @@ -3615,7 +3615,7 @@ HWTEST2_F(InOrderCmdListTests, givenCopyOnlyInOrderModeWhenProgrammingBarrierThe immCmdList2->appendBarrier(nullptr, 1, &eventHandle, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -3650,7 +3650,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingAppendBarrierWithW immCmdList2->appendBarrier(nullptr, 1, &eventHandle, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -3712,7 +3712,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingAppendBarrierWithD immCmdList2->appendBarrier(events[2]->toHandle(), 2, waitlist, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -3750,7 +3750,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingAppendBarrierWitho immCmdList->appendBarrier(eventHandle, 0, nullptr, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -3788,7 +3788,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingAppendBarrierWitho immCmdList->appendBarrier(eventHandle, 0, nullptr, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -4161,7 +4161,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingKernelSplitWithout immCmdList->appendMemoryCopy(unalignedPtr, unalignedPtr, ptrBaseSize - offset, nullptr, 0, nullptr, false, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); auto cmdItor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), cmdItor); @@ -4204,7 +4204,7 @@ HWTEST2_F(InOrderCmdListTests, givenInOrderModeWhenProgrammingKernelSplitWithEve immCmdList->appendMemoryCopy(unalignedPtr, unalignedPtr, ptrBaseSize - offset, eventHandle, 0, nullptr, false, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); auto cmdItor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), cmdItor); @@ -4295,7 +4295,7 @@ HWTEST2_F(MultiTileInOrderCmdListTests, givenAtomicSignallingEnabledWhenSignalli EXPECT_EQ(partitionCount * 2, immCmdList->inOrderExecInfo->getCounterValue()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); auto miAtomics = findAll(cmdList.begin(), cmdList.end()); EXPECT_EQ(1u, miAtomics.size()); @@ -4342,7 +4342,7 @@ HWTEST2_F(MultiTileInOrderCmdListTests, givenDuplicatedCounterStorageAndAtomicSi EXPECT_EQ(partitionCount * 2, immCmdList->inOrderExecInfo->getCounterValue()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); auto miAtomics = findAll(cmdList.begin(), cmdList.end()); EXPECT_EQ(1u, miAtomics.size()); @@ -4393,7 +4393,7 @@ HWTEST2_F(MultiTileInOrderCmdListTests, givenDuplicatedCounterStorageAndWithoutA EXPECT_EQ(2u, immCmdList->inOrderExecInfo->getCounterValue()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); auto sdiCmds = findAll(cmdList.begin(), cmdList.end()); EXPECT_EQ(2u, sdiCmds.size()); @@ -4440,7 +4440,7 @@ HWTEST2_F(MultiTileInOrderCmdListTests, givenAtomicSignallingEnabledWhenWaitingF immCmdList2->appendLaunchKernel(kernel->toHandle(), groupCount, nullptr, 1, &handle, launchParams, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); auto semaphores = findAll(cmdList.begin(), cmdList.end()); ASSERT_EQ(2u + (ImplicitScalingDispatch::getPipeControlStallRequired() ? 1 : 0), semaphores.size()); @@ -4475,7 +4475,7 @@ HWTEST2_F(MultiTileInOrderCmdListTests, givenMultiTileInOrderModeWhenProgramming { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); auto semaphoreItor = find(cmdList.begin(), cmdList.end()); @@ -4512,7 +4512,7 @@ HWTEST2_F(MultiTileInOrderCmdListTests, givenMultiTileInOrderModeWhenProgramming { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -4550,7 +4550,7 @@ HWTEST2_F(MultiTileInOrderCmdListTests, givenMultiTileInOrderModeWhenSignalingSy immCmdList->appendSignalInOrderDependencyCounter(nullptr); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); auto sdiCmd = genCmdCast(*cmdList.begin()); ASSERT_NE(nullptr, sdiCmd); @@ -4613,7 +4613,7 @@ HWTEST2_F(MultiTileInOrderCmdListTests, givenMultiTileInOrderModeWhenProgramming immCmdList->appendLaunchKernel(kernel->toHandle(), groupCount, eventHandle, 0, nullptr, launchParams, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); @@ -4665,7 +4665,7 @@ HWTEST2_F(MultiTileInOrderCmdListTests, givenMultiTileInOrderModeWhenProgramming immCmdList->appendLaunchKernel(kernel->toHandle(), groupCount, eventHandle, 0, nullptr, launchParams, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); @@ -4738,7 +4738,7 @@ HWTEST2_F(MultiTileInOrderCmdListTests, whenUsingRegularCmdListThenAddWalkerToPa { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -4838,7 +4838,7 @@ void BcsSplitInOrderCmdListTests::verifySplitCmds(LinearStream &cmdStream, size_ auto counterGpuAddress = immCmdList.inOrderExecInfo->getDeviceCounterAllocation().getGpuAddress(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream.getCpuBase(), streamOffset), (cmdStream.getUsed() - streamOffset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream.getCpuBase(), streamOffset), (cmdStream.getUsed() - streamOffset))); auto itor = cmdList.begin(); @@ -4947,7 +4947,7 @@ HWTEST2_F(BcsSplitInOrderCmdListTests, givenBcsSplitEnabledWhenDispatchingCopyTh EXPECT_TRUE(verifySplit(1)); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); auto semaphoreItor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), semaphoreItor); @@ -5062,7 +5062,7 @@ HWTEST2_F(BcsSplitInOrderCmdListTests, givenBcsSplitEnabledWhenDispatchingCopyRe EXPECT_TRUE(verifySplit(1)); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed())); auto semaphoreItor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), semaphoreItor); @@ -5140,7 +5140,7 @@ HWTEST2_F(InOrderRegularCmdListTests, whenUsingRegularCmdListThenAddCmdsToPatch, { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -5180,7 +5180,7 @@ HWTEST2_F(InOrderRegularCmdListTests, whenUsingRegularCmdListThenAddCmdsToPatch, { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -5308,7 +5308,7 @@ HWTEST2_F(InOrderRegularCmdListTests, givenCrossRegularCmdListDependenciesWhenEx auto verifyPatching = [&](uint64_t expectedImplicitDependencyValue, uint64_t expectedExplicitDependencyValue) { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream2->getCpuBase(), offset2), (sizeToParse2 - offset2))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream2->getCpuBase(), offset2), (sizeToParse2 - offset2))); auto semaphoreCmds = findAll(cmdList.begin(), cmdList.end()); ASSERT_EQ(2u, semaphoreCmds.size()); @@ -5378,7 +5378,7 @@ HWTEST2_F(InOrderRegularCmdListTests, givenCrossRegularCmdListDependenciesWhenEx auto verifyPatching = [&](uint64_t expectedImplicitDependencyValue, uint64_t expectedExplicitDependencyValue) { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream2->getCpuBase(), offset2), (sizeToParse2 - offset2))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream2->getCpuBase(), offset2), (sizeToParse2 - offset2))); auto semaphoreCmds = findAll(cmdList.begin(), cmdList.end()); ASSERT_EQ(2u, semaphoreCmds.size()); @@ -5459,7 +5459,7 @@ HWTEST2_F(InOrderRegularCmdListTests, whenUsingRegularCmdListThenAddWalkerToPatc { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -5518,7 +5518,7 @@ HWTEST2_F(InOrderRegularCmdListTests, givenInOrderModeWhenDispatchingRegularCmdL { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -5543,7 +5543,7 @@ HWTEST2_F(InOrderRegularCmdListTests, givenInOrderModeWhenDispatchingRegularCmdL { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); auto semaphoreItor = find(cmdList.begin(), cmdList.end()); @@ -5608,7 +5608,7 @@ HWTEST2_F(InOrderRegularCmdListTests, givenInOrderModeWhenDispatchingRegularCmdL { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -5621,7 +5621,7 @@ HWTEST2_F(InOrderRegularCmdListTests, givenInOrderModeWhenDispatchingRegularCmdL { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(copyOnlyCmdStream->getCpuBase(), offset), (copyOnlyCmdStream->getUsed() - offset))); @@ -5651,7 +5651,7 @@ HWTEST2_F(InOrderRegularCopyOnlyCmdListTests, givenInOrderModeWhenDispatchingReg { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -5676,7 +5676,7 @@ HWTEST2_F(InOrderRegularCopyOnlyCmdListTests, givenInOrderModeWhenDispatchingReg { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); @@ -5781,7 +5781,7 @@ HWTEST_F(CommandListAppendLaunchKernelWithImplicitArgs, givenIndirectDispatchWit globalSizeZStoreRegisterMemCmd.setMemoryAddress(pImplicitArgsGPUVA + offsetof(ImplicitArgs, globalSizeZ)); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -5935,7 +5935,7 @@ HWTEST2_F(MultiTileImmediateCommandListAppendLaunchKernelXeHpCoreTest, givenImpl sizeof(MI_BATCH_BUFFER_START) + 3 * sizeof(uint32_t); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream->getCpuBase(), sizeBefore), sizeAfter - sizeBefore)); @@ -5990,7 +5990,7 @@ HWTEST2_F(MultiTileImmediateCommandListAppendLaunchKernelXeHpCoreTest, givenImpl auto sizeAfter = cmdStream->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream->getCpuBase(), sizeBefore), sizeAfter - sizeBefore)); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_memory.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_memory.cpp index ef85810b8d..91bae7f3d8 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_memory.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_memory.cpp @@ -117,7 +117,7 @@ HWTEST2_F(AppendMemoryCopy, givenCopyCommandListAndDestinationPtrOffsetWhenMemor auto &cmdContainer = cmdList.getCmdContainer(); GenCmdList genCmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( genCmdList, ptrOffset(cmdContainer.getCommandStream()->getCpuBase(), 0), cmdContainer.getCommandStream()->getUsed())); auto itor = find(genCmdList.begin(), genCmdList.end()); ASSERT_NE(genCmdList.end(), itor); @@ -151,7 +151,7 @@ HWTEST2_F(AppendMemoryCopy, givenCopyCommandListAndSourcePtrOffsetWhenMemoryCopy auto &cmdContainer = cmdList.getCmdContainer(); GenCmdList genCmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( genCmdList, ptrOffset(cmdContainer.getCommandStream()->getCpuBase(), 0), cmdContainer.getCommandStream()->getUsed())); auto itor = find(genCmdList.begin(), genCmdList.end()); ASSERT_NE(genCmdList.end(), itor); @@ -186,7 +186,7 @@ HWTEST2_F(AppendMemoryCopy, givenCopyCommandListAndDestinationPtrOffsetWhenMemor auto &cmdContainer = cmdList.getCmdContainer(); GenCmdList genCmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( genCmdList, ptrOffset(cmdContainer.getCommandStream()->getCpuBase(), 0), cmdContainer.getCommandStream()->getUsed())); auto itor = find(genCmdList.begin(), genCmdList.end()); ASSERT_NE(genCmdList.end(), itor); @@ -221,7 +221,7 @@ HWTEST2_F(AppendMemoryCopy, givenCopyCommandListAndSourcePtrOffsetWhenMemoryCopy auto &cmdContainer = cmdList.getCmdContainer(); GenCmdList genCmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( genCmdList, ptrOffset(cmdContainer.getCommandStream()->getCpuBase(), 0), cmdContainer.getCommandStream()->getUsed())); auto itor = find(genCmdList.begin(), genCmdList.end()); ASSERT_NE(genCmdList.end(), itor); @@ -255,7 +255,7 @@ HWTEST2_F(AppendMemoryCopy, givenCopyCommandListAndDestinationPtrOffsetWhenMemor auto &cmdContainer = cmdList.getCmdContainer(); GenCmdList genCmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( genCmdList, ptrOffset(cmdContainer.getCommandStream()->getCpuBase(), 0), cmdContainer.getCommandStream()->getUsed())); auto itor = find(genCmdList.begin(), genCmdList.end()); ASSERT_NE(genCmdList.end(), itor); @@ -289,7 +289,7 @@ HWTEST2_F(AppendMemoryCopy, givenCopyCommandListAndSourcePtrOffsetWhenMemoryCopy auto &cmdContainer = cmdList.getCmdContainer(); GenCmdList genCmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( genCmdList, ptrOffset(cmdContainer.getCommandStream()->getCpuBase(), 0), cmdContainer.getCommandStream()->getUsed())); auto itor = find(genCmdList.begin(), genCmdList.end()); ASSERT_NE(genCmdList.end(), itor); @@ -314,7 +314,7 @@ HWTEST2_F(AppendMemoryCopy, givenCommandListAndHostPointersWhenMemoryCopyRegionC auto &commandContainer = cmdList.commandContainer; GenCmdList genCmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( genCmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto pc = genCmdCast(*genCmdList.rbegin()); @@ -455,7 +455,7 @@ HWTEST2_F(AppendMemoryCopy, givenAsyncImmediateCommandListWhenAppendingMemoryCop auto findTagUpdate = [](void *streamBase, size_t sizeUsed, uint64_t tagAddress) -> bool { GenCmdList genCmdList; - EXPECT_TRUE(FamilyType::PARSE::parseCommandBuffer(genCmdList, streamBase, sizeUsed)); + EXPECT_TRUE(FamilyType::Parse::parseCommandBuffer(genCmdList, streamBase, sizeUsed)); auto itor = find(genCmdList.begin(), genCmdList.end()); bool found = false; @@ -549,7 +549,7 @@ HWTEST2_F(AppendMemoryCopy, givenSyncImmediateCommandListWhenAppendingMemoryCopy auto findTagUpdate = [](void *streamBase, size_t sizeUsed, uint64_t tagAddress) -> bool { GenCmdList genCmdList; - EXPECT_TRUE(FamilyType::PARSE::parseCommandBuffer(genCmdList, streamBase, sizeUsed)); + EXPECT_TRUE(FamilyType::Parse::parseCommandBuffer(genCmdList, streamBase, sizeUsed)); auto itor = find(genCmdList.begin(), genCmdList.end()); bool found = false; @@ -645,7 +645,7 @@ HWTEST2_F(AppendMemoryCopy, givenCommandListAndHostPointersWhenMemoryCopyCalledT size_t usedAfter = commandContainer.getCommandStream()->getUsed(); GenCmdList genCmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( genCmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), usedAfter - usedBefore)); @@ -692,7 +692,7 @@ HWTEST2_F(AppendMemoryCopy, givenCopyCommandListWhenTimestampPassedToMemoryCopyT EXPECT_EQ(1u, event->getPacketsInUse()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList.commandContainer.getCommandStream()->getCpuBase(), 0), commandList.commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -755,7 +755,7 @@ HWTEST2_F(AppendMemoryCopy, EXPECT_EQ(1u, event->getKernelCount()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList.commandContainer.getCommandStream()->getCpuBase(), 0), commandList.commandContainer.getCommandStream()->getUsed())); @@ -813,7 +813,7 @@ HWTEST2_F(AppendMemoryCopy, EXPECT_EQ(1u, event->getKernelCount()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList.commandContainer.getCommandStream()->getCpuBase(), 0), commandList.commandContainer.getCommandStream()->getUsed())); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_multipartition_prologue.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_multipartition_prologue.cpp index 36fbd27679..9fc3586b23 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_multipartition_prologue.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_multipartition_prologue.cpp @@ -36,7 +36,7 @@ HWTEST2_F(MultiPartitionPrologueTest, whenAppendMultiPartitionPrologueIsCalledTh ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); auto itorLrm = find(cmdList.begin(), cmdList.end()); @@ -90,7 +90,7 @@ HWTEST2_F(MultiPartitionEpilogueTest, whenAppendMultiPartitionEpilogueIsCalledTh ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); auto itorLri = find(cmdList.begin(), cmdList.end()); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_signal_event.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_signal_event.cpp index 91f9e0ae99..bb3a2f2695 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_signal_event.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_signal_event.cpp @@ -39,7 +39,7 @@ HWTEST_F(CommandListAppendSignalEvent, WhenAppendingSignalEventWithoutScopeThenM ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); auto baseAddr = event->getCompletionFieldGpuAddress(device); @@ -87,7 +87,7 @@ HWTEST_F(CommandListAppendSignalEvent, givenEventWithScopeFlagDeviceWhenAppendin ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); @@ -119,7 +119,7 @@ HWTEST2_F(CommandListAppendSignalEvent, givenCommandListWhenAppendWriteGlobalTim commandList->appendWriteGlobalTimestamp(dstptr, event->toHandle(), 0, nullptr); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto residencyContainer = commandContainer.getResidencyContainer(); @@ -178,7 +178,7 @@ HWTEST2_F(CommandListAppendSignalEvent, givenTimestampEventUsedInSignalThenPipeC auto gpuAddress = ptrOffset(baseAddr, contextOffset); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itorPC = findAll(cmdList.begin(), cmdList.end()); @@ -228,7 +228,7 @@ HWTEST2_F(CommandListAppendUsedPacketSignalEvent, EXPECT_EQ(expectedSize, usedSize); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, cmdStream->getCpuBase(), usedSize)); @@ -271,7 +271,7 @@ HWTEST2_F(CommandListAppendUsedPacketSignalEvent, givenMultiTileAndDynamicPostSy { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), usedSize)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), usedSize)); auto lriItor = cmdList.begin(); auto lriCmd = genCmdCast(*lriItor); @@ -304,7 +304,7 @@ HWTEST2_F(CommandListAppendUsedPacketSignalEvent, givenMultiTileAndDynamicPostSy { GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), usedSize)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), usedSize)); auto lriList = findAll(cmdList.begin(), cmdList.end()); EXPECT_EQ(0u, lriList.size()); @@ -344,7 +344,7 @@ HWTEST2_F(CommandListAppendUsedPacketSignalEvent, EXPECT_EQ(expectedSize, usedSize); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, cmdStream->getCpuBase(), usedSize)); @@ -400,7 +400,7 @@ HWTEST2_F(CommandListAppendUsedPacketSignalEvent, EXPECT_EQ(expectedSize, usedSize); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, cmdStream->getCpuBase(), usedSize)); @@ -460,7 +460,7 @@ HWTEST2_F(CommandListAppendUsedPacketSignalEvent, EXPECT_EQ(expectedSize, usedSize); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, cmdStream->getCpuBase(), usedSize)); @@ -518,7 +518,7 @@ HWTEST2_F(CommandListAppendUsedPacketSignalEvent, uint64_t globalEndAddress = eventGpuAddress + event->getGlobalEndOffset(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itorPC = find(cmdList.begin(), cmdList.end()); @@ -585,7 +585,7 @@ HWTEST2_F(CommandListAppendUsedPacketSignalEvent, size_t usedAfterSize = cmdStream->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, cmdStream->getCpuBase(), usedAfterSize)); @@ -627,7 +627,7 @@ HWTEST2_F(CommandListAppendUsedPacketSignalEvent, size_t usedAfterSize = cmdStream->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, cmdStream->getCpuBase(), usedAfterSize)); @@ -671,7 +671,7 @@ HWTEST2_F(CommandListAppendUsedPacketSignalEvent, size_t usedAfterSize = cmdStream->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, cmdStream->getCpuBase(), usedAfterSize)); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_wait_on_events.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_wait_on_events.cpp index d109c3412d..efdbaf6a39 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_wait_on_events.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_wait_on_events.cpp @@ -40,7 +40,7 @@ HWTEST_F(CommandListAppendWaitOnEvent, WhenAppendingWaitOnEventThenSemaphoreWait ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); @@ -94,7 +94,7 @@ HWTEST2_F(CommandListAppendWaitOnEvent, givenImmediateCmdListWithDirectSubmissio auto usedSpaceAfter = immCommandList->getCmdContainer().getCommandStream()->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, immCommandList->getCmdContainer().getCommandStream()->getCpuBase(), usedSpaceAfter)); @@ -191,7 +191,7 @@ HWTEST2_F(CommandListAppendWaitOnEvent, givenImmediateCmdListWithDirectSubmissio auto usedSpaceAfter = immCommandList->getCmdContainer().getCommandStream()->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, immCommandList->getCmdContainer().getCommandStream()->getCpuBase(), usedSpaceAfter)); @@ -225,7 +225,7 @@ HWTEST2_F(CommandListAppendWaitOnEvent, givenImmediateCmdListWithDirectSubmissio auto usedSpaceAfter = immCommandList->getCmdContainer().getCommandStream()->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, immCommandList->getCmdContainer().getCommandStream()->getCpuBase(), usedSpaceAfter)); @@ -262,7 +262,7 @@ HWTEST2_F(CommandListAppendWaitOnEvent, givenImmediateCmdListWithDirectSubmissio auto usedSpaceAfter = immCommandList->getCmdContainer().getCommandStream()->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, immCommandList->getCmdContainer().getCommandStream()->getCpuBase(), usedSpaceAfter)); @@ -283,7 +283,7 @@ HWTEST_F(CommandListAppendWaitOnEvent, givenTwoEventsWhenWaitOnEventsAppendedThe ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); @@ -340,7 +340,7 @@ HWTEST_F(CommandListAppendWaitOnEvent, givenEventWithWaitScopeFlagDeviceWhenAppe auto usedSpaceAfter = commandList->getCmdContainer().getCommandStream()->getUsed(); ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); @@ -387,7 +387,7 @@ HWTEST_F(CommandListAppendWaitOnUsedPacketSignalEvent, WhenAppendingWaitOnTimest auto gpuAddress = event->getGpuAddress(device) + event->getContextEndOffset(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); @@ -450,7 +450,7 @@ HWTEST_F(CommandListAppendWaitOnUsedPacketSignalEvent, WhenAppendingWaitOnTimest auto gpuAddress = event->getGpuAddress(device) + event->getContextEndOffset(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); @@ -497,7 +497,7 @@ HWTEST2_F(CommandListAppendWaitOnEvent, givenCommandListWhenAppendWriteGlobalTim auto timestampAddress = timestampAlloc->getGpuAddress(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); @@ -571,7 +571,7 @@ HWTEST_F(CommandListAppendWaitOnSecondaryBatchBufferEvent, givenCommandBufferIsE auto gpuAddress = event->getCompletionFieldGpuAddress(device); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, commandList->getCmdContainer().getCommandStream()->getCpuBase(), usedSpaceAfter)); @@ -630,7 +630,7 @@ HWTEST2_F(MultTileCommandListAppendWaitOnEvent, auto gpuAddress = event->getGpuAddress(device) + event->getContextEndOffset(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), usedSpaceBefore), expectedSize)); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_blit.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_blit.cpp index 1521365981..3cf7115d2d 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_blit.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_blit.cpp @@ -97,7 +97,7 @@ HWTEST2_F(AppendMemoryCopy, givenCopyOnlyCommandListWhenAppenBlitFillThenCopyBlt void *ptr = reinterpret_cast(0x1234); commandList.appendMemoryFill(ptr, reinterpret_cast(&pattern), sizeof(pattern), 0x1000, nullptr, 0, nullptr, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList.getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList.getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -129,7 +129,7 @@ HWTEST2_F(AppendMemoryCopy, EXPECT_EQ(result, ZE_RESULT_SUCCESS); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList.getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList.getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -155,7 +155,7 @@ HWTEST2_F(AppendMemoryCopy, givenCopyOnlyCommandListAndHostPointersWhenMemoryCop auto &commandContainer = commandList->getCmdContainer(); GenCmdList genCmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( genCmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itor = find(genCmdList.begin(), genCmdList.end()); ASSERT_NE(genCmdList.end(), itor); @@ -180,7 +180,7 @@ HWTEST2_F(AppendMemoryCopy, givenCopyOnlyCommandListAndHostPointersWhenMemoryCop auto &commandContainer = commandList->getCmdContainer(); GenCmdList genCmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( genCmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itor = find(genCmdList.begin(), genCmdList.end()); ASSERT_NE(genCmdList.end(), itor); @@ -212,7 +212,7 @@ HWTEST2_F(AppendMemoryCopy, givenCopyOnlyCommandListThenDcFlushIsNotAddedAfterBl auto &commandContainer = commandList->getCmdContainer(); GenCmdList genCmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( genCmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itor = find(genCmdList.begin(), genCmdList.end()); ASSERT_NE(genCmdList.end(), itor); @@ -257,7 +257,7 @@ HWTEST2_F(AppendMemoryCopy, givenCopyCommandListWhenTimestampPassedToMemoryCopyR auto contextEndOffset = event->getContextEndOffset(); auto globalEndOffset = event->getGlobalEndOffset(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -309,7 +309,7 @@ HWTEST2_F(AppendMemoryCopy, givenCopyCommandListWhenTimestampPassedToImageCopyBl commandList->appendCopyImageBlit(&mockAllocationDst, &mockAllocationSrc, {0, 0, 0}, {0, 0, 0}, 1, 1, 1, 1, 1, {1, 1, 1}, {1, 1, 1}, {1, 1, 1}, event.get()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -332,7 +332,7 @@ HWTEST2_F(AppendMemoryCopy, givenCopyCommandListWhenCopyFromImagBlitThenCommandA commandList->appendImageCopyRegion(imageHWDst->toHandle(), imageHWSrc->toHandle(), nullptr, nullptr, nullptr, 0, nullptr, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_copy_event_xehp_and_later.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_copy_event_xehp_and_later.cpp index 50eee421f3..538e00184a 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_copy_event_xehp_and_later.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_copy_event_xehp_and_later.cpp @@ -124,7 +124,7 @@ void testSingleTileAppendMemoryCopyThreeKernels(CopyTestInput &input, TestExpect EXPECT_EQ(arg.expectedKernelCount, event->getKernelCount()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList.commandContainer.getCommandStream()->getCpuBase(), 0), commandList.commandContainer.getCommandStream()->getUsed())); @@ -210,7 +210,7 @@ void testSingleTileAppendMemoryCopyThreeKernelsAndL3Flush(CopyTestInput &input, EXPECT_EQ(arg.expectedKernelCount, event->getKernelCount()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList.commandContainer.getCommandStream()->getCpuBase(), 0), commandList.commandContainer.getCommandStream()->getUsed())); @@ -314,7 +314,7 @@ void testSingleTileAppendMemoryCopySingleKernel(CopyTestInput &input, TestExpect EXPECT_EQ(arg.expectedKernelCount, event->getKernelCount()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList.commandContainer.getCommandStream()->getCpuBase(), 0), commandList.commandContainer.getCommandStream()->getUsed())); @@ -388,7 +388,7 @@ void testSingleTileAppendMemoryCopySingleKernelAndL3Flush(CopyTestInput &input, EXPECT_EQ(arg.expectedKernelCount, event->getKernelCount()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList.commandContainer.getCommandStream()->getCpuBase(), 0), commandList.commandContainer.getCommandStream()->getUsed())); @@ -476,7 +476,7 @@ void testSingleTileAppendMemoryCopySignalScopeEventToSubDevice(CopyTestInput &in size_t usedAfter = commandContainer.getCommandStream()->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), usedAfter - usedBefore)); @@ -544,7 +544,7 @@ void testMultiTileAppendMemoryCopyThreeKernels(CopyTestInput &input, TestExpecte EXPECT_EQ(arg.expectedKernelCount, event->getKernelCount()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList.commandContainer.getCommandStream()->getCpuBase(), 0), commandList.commandContainer.getCommandStream()->getUsed())); @@ -640,7 +640,7 @@ void testMultiTileAppendMemoryCopyThreeKernelsAndL3Flush(CopyTestInput &input, T EXPECT_EQ(arg.expectedKernelCount, event->getKernelCount()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), usedAfter - usedBefore)); @@ -758,7 +758,7 @@ void testMultiTileAppendMemoryCopySingleKernel(CopyTestInput &input, TestExpecte EXPECT_EQ(arg.expectedKernelCount, event->getKernelCount()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList.commandContainer.getCommandStream()->getCpuBase(), 0), commandList.commandContainer.getCommandStream()->getUsed())); @@ -839,7 +839,7 @@ void testMultiTileAppendMemoryCopySingleKernelAndL3Flush(CopyTestInput &input, T EXPECT_EQ(arg.expectedKernelCount, event->getKernelCount()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), usedAfter - usedBefore)); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_fill.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_fill.cpp index 1d78fe904a..b51d039f6f 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_fill.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_fill.cpp @@ -314,7 +314,7 @@ HWTEST2_F(AppendFillTest, EXPECT_EQ(1u, event->getKernelCount()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->commandContainer.getCommandStream()->getCpuBase(), 0), commandList->commandContainer.getCommandStream()->getUsed())); @@ -368,7 +368,7 @@ HWTEST2_F(AppendFillTest, EXPECT_EQ(1u, event->getKernelCount()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->commandContainer.getCommandStream()->getCpuBase(), 0), commandList->commandContainer.getCommandStream()->getUsed())); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_fill_event_xehp_and_later.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_fill_event_xehp_and_later.cpp index 2eaca45b44..54e37e2827 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_fill_event_xehp_and_later.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_fill_event_xehp_and_later.cpp @@ -122,7 +122,7 @@ void testSingleTileAppendMemoryFillManyImmediateKernels(FillTestInput &input, Te EXPECT_EQ(arg.expectedKernelCount, event->getKernelCount()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), usedAfter - usedBefore)); @@ -202,7 +202,7 @@ void testSingleTileAppendMemoryFillManyKernels(FillTestInput &input, TestExpecte EXPECT_EQ(arg.expectedKernelCount, event->getKernelCount()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), usedAfter - usedBefore)); @@ -283,7 +283,7 @@ void testSingleTileAppendMemoryFillManyKernelsAndL3Flush(FillTestInput &input, T EXPECT_EQ(arg.expectedKernelCount, event->getKernelCount()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), usedAfter - usedBefore)); @@ -364,7 +364,7 @@ void testSingleTileAppendMemoryFillSingleKernel(FillTestInput &input, TestExpect uint64_t firstKernelEventAddress = arg.postSyncAddressZero ? 0 : gpuBaseAddress; GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), usedAfter - usedBefore)); @@ -443,7 +443,7 @@ void testSingleTileAppendMemoryFillSingleKernelAndL3Flush(FillTestInput &input, uint64_t firstKernelEventAddress = arg.postSyncAddressZero ? 0 : gpuBaseAddress; GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), usedAfter - usedBefore)); @@ -554,7 +554,7 @@ void testMultiTileAppendMemoryFillManyKernels(FillTestInput &input, TestExpected EXPECT_EQ(arg.expectedKernelCount, event->getKernelCount()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), usedAfter - usedBefore)); @@ -662,7 +662,7 @@ void testMultiTileAppendMemoryFillSingleKernelAndL3Flush(FillTestInput &input, T uint64_t firstKernelEventAddress = arg.postSyncAddressZero ? 0 : gpuBaseAddress; GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), usedBefore), usedAfter - usedBefore)); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_memory_extension.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_memory_extension.cpp index d0e8b39359..ae91b8ab74 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_memory_extension.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_memory_extension.cpp @@ -281,7 +281,7 @@ HWTEST_F(CommandListAppendWaitOnMem, givenAppendWaitOnMemWithValidAddressAndData EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); ASSERT_TRUE(validateProgramming(cmdList, waitMemData, castToUint64(ptr), MI_SEMAPHORE_WAIT::COMPARE_OPERATION::COMPARE_OPERATION_SAD_NOT_EQUAL_SDD, false)); } @@ -335,7 +335,7 @@ HWTEST2_F(CommandListAppendWaitOnMem, given64bValueWhenWaitOnMemory64CalledThenP zexCommandListAppendWaitOnMemory64(commandList->toHandle(), &desc, ptr, waitMemData, nullptr); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); ASSERT_TRUE(validateProgramming(cmdList, waitMemData, castToUint64(ptr), MI_SEMAPHORE_WAIT::COMPARE_OPERATION::COMPARE_OPERATION_SAD_NOT_EQUAL_SDD, true)); } @@ -377,7 +377,7 @@ HWTEST2_F(CommandListAppendWaitOnMem, given64bValueAndOutEventWhenWaitOnMemory64 zexCommandListAppendWaitOnMemory64(commandList->toHandle(), &desc, ptr, waitMemData, event.get()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); ASSERT_TRUE(validateProgramming(cmdList, waitMemData, castToUint64(ptr), MI_SEMAPHORE_WAIT::COMPARE_OPERATION::COMPARE_OPERATION_SAD_NOT_EQUAL_SDD, true)); @@ -414,7 +414,7 @@ HWTEST_F(CommandListAppendWaitOnMem, givenAppendWaitOnMemWithValidAddressAndData EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); ASSERT_TRUE(validateProgramming(cmdList, waitMemData, castToUint64(ptr), MI_SEMAPHORE_WAIT::COMPARE_OPERATION::COMPARE_OPERATION_SAD_EQUAL_SDD, false)); } @@ -431,7 +431,7 @@ HWTEST_F(CommandListAppendWaitOnMem, givenAppendWaitOnMemWithValidAddressAndData EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); ASSERT_TRUE(validateProgramming(cmdList, waitMemData, castToUint64(ptr), MI_SEMAPHORE_WAIT::COMPARE_OPERATION::COMPARE_OPERATION_SAD_GREATER_THAN_SDD, false)); } @@ -448,7 +448,7 @@ HWTEST_F(CommandListAppendWaitOnMem, givenAppendWaitOnMemWithValidAddressAndData EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); ASSERT_TRUE(validateProgramming(cmdList, waitMemData, castToUint64(ptr), MI_SEMAPHORE_WAIT::COMPARE_OPERATION::COMPARE_OPERATION_SAD_GREATER_THAN_OR_EQUAL_SDD, false)); } @@ -465,7 +465,7 @@ HWTEST_F(CommandListAppendWaitOnMem, givenAppendWaitOnMemWithValidAddressAndData EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); ASSERT_TRUE(validateProgramming(cmdList, waitMemData, castToUint64(ptr), MI_SEMAPHORE_WAIT::COMPARE_OPERATION::COMPARE_OPERATION_SAD_LESS_THAN_SDD, false)); } @@ -482,7 +482,7 @@ HWTEST_F(CommandListAppendWaitOnMem, givenAppendWaitOnMemWithValidAddressAndData EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); ASSERT_TRUE(validateProgramming(cmdList, waitMemData, castToUint64(ptr), MI_SEMAPHORE_WAIT::COMPARE_OPERATION::COMPARE_OPERATION_SAD_LESS_THAN_OR_EQUAL_SDD, false)); } @@ -527,7 +527,7 @@ HWTEST_F(CommandListAppendWaitOnMem, givenAppendWaitOnMemWithSignalEventAndHostS EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto gpuAddress = event->getCompletionFieldGpuAddress(this->device); @@ -599,7 +599,7 @@ HWTEST_F(CommandListAppendWaitOnMem, givenAppendWaitOnMemWithSignalEventAndNoSco EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto gpuAddress = event->getCompletionFieldGpuAddress(this->device); @@ -669,7 +669,7 @@ HWTEST_F(CommandListAppendWaitOnMem, givenAppendWaitOnMemOnBcsWithSignalEventAnd EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -721,7 +721,7 @@ HWTEST2_F(CommandListAppendWaitOnMem, givenAppendWaitOnMemWithNoScopeAndSystemMe auto addressSpace = device->getHwInfo().capabilityTable.gpuAddressSpace; GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); ASSERT_TRUE(validateProgramming(cmdList, waitMemData, castToUint64(cmdListHostBuffer), MI_SEMAPHORE_WAIT::COMPARE_OPERATION::COMPARE_OPERATION_SAD_LESS_THAN_OR_EQUAL_SDD, false)); @@ -756,7 +756,7 @@ HWTEST2_F(CommandListAppendWaitOnMem, givenAppendWaitOnMemWithHostMemAndNoScopeT EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); EXPECT_EQ(ZE_RESULT_SUCCESS, result); @@ -782,7 +782,7 @@ HWTEST2_F(CommandListAppendWaitOnMem, givenAppendWaitOnMemWithDeviceMemAndNoScop EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); EXPECT_EQ(ZE_RESULT_SUCCESS, result); @@ -805,7 +805,7 @@ HWTEST_F(CommandListAppendWriteToMem, givenAppendWriteToMemWithNoScopeThenPipeCo EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itorPC = findAll(cmdList.begin(), cmdList.end()); @@ -846,7 +846,7 @@ HWTEST_F(CommandListAppendWriteToMem, givenAppendWriteToMemOnBcsWithNoScopeThenF EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itorFDW = findAll(cmdList.begin(), cmdList.end()); @@ -876,7 +876,7 @@ HWTEST_F(CommandListAppendWriteToMem, givenAppendWriteToMemWithScopeThenPipeCont EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itorPC = findAll(cmdList.begin(), cmdList.end()); @@ -924,7 +924,7 @@ HWTEST2_F(CommandListAppendWriteToMem, givenAppendWriteToMemWithScopeThenPipeCon EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itorPC = findAll(cmdList.begin(), cmdList.end()); @@ -1013,7 +1013,7 @@ HWTEST_F(ImmediateCommandListAppendWaitOnMem, givenAppendWaitOnMemWithValidAddre EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); ASSERT_TRUE(validateProgramming(cmdList, waitMemData, castToUint64(ptr), MI_SEMAPHORE_WAIT::COMPARE_OPERATION::COMPARE_OPERATION_SAD_NOT_EQUAL_SDD, false)); } @@ -1030,7 +1030,7 @@ HWTEST_F(ImmediateCommandListAppendWaitOnMem, givenAppendWaitOnMemWithValidAddre EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); ASSERT_TRUE(validateProgramming(cmdList, waitMemData, castToUint64(ptr), MI_SEMAPHORE_WAIT::COMPARE_OPERATION::COMPARE_OPERATION_SAD_EQUAL_SDD, false)); } @@ -1047,7 +1047,7 @@ HWTEST_F(ImmediateCommandListAppendWaitOnMem, givenAppendWaitOnMemWithValidAddre EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); ASSERT_TRUE(validateProgramming(cmdList, waitMemData, castToUint64(ptr), MI_SEMAPHORE_WAIT::COMPARE_OPERATION::COMPARE_OPERATION_SAD_GREATER_THAN_SDD, false)); } @@ -1064,7 +1064,7 @@ HWTEST_F(ImmediateCommandListAppendWaitOnMem, givenAppendWaitOnMemWithValidAddre EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); ASSERT_TRUE(validateProgramming(cmdList, waitMemData, castToUint64(ptr), MI_SEMAPHORE_WAIT::COMPARE_OPERATION::COMPARE_OPERATION_SAD_GREATER_THAN_OR_EQUAL_SDD, false)); } @@ -1081,7 +1081,7 @@ HWTEST_F(ImmediateCommandListAppendWaitOnMem, givenAppendWaitOnMemWithValidAddre EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); ASSERT_TRUE(validateProgramming(cmdList, waitMemData, castToUint64(ptr), MI_SEMAPHORE_WAIT::COMPARE_OPERATION::COMPARE_OPERATION_SAD_LESS_THAN_SDD, false)); } @@ -1098,7 +1098,7 @@ HWTEST_F(ImmediateCommandListAppendWaitOnMem, givenAppendWaitOnMemWithValidAddre EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(cmdStream->getCpuBase(), offset), (cmdStream->getUsed() - offset))); ASSERT_TRUE(validateProgramming(cmdList, waitMemData, castToUint64(ptr), MI_SEMAPHORE_WAIT::COMPARE_OPERATION::COMPARE_OPERATION_SAD_LESS_THAN_OR_EQUAL_SDD, false)); } @@ -1143,7 +1143,7 @@ HWTEST_F(ImmediateCommandListAppendWaitOnMem, givenAppendWaitOnMemWithSignalEven EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto gpuAddress = event->getCompletionFieldGpuAddress(this->device); @@ -1215,7 +1215,7 @@ HWTEST_F(ImmediateCommandListAppendWaitOnMem, givenAppendWaitOnMemWithSignalEven EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto gpuAddress = event->getCompletionFieldGpuAddress(this->device); @@ -1285,7 +1285,7 @@ HWTEST_F(ImmediateCommandListAppendWaitOnMem, givenAppendWaitOnMemOnBcsWithSigna EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -1327,7 +1327,7 @@ HWTEST2_F(ImmediateCommandListAppendWaitOnMem, givenAppendWaitOnMemWithHostMemAn EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); EXPECT_EQ(ZE_RESULT_SUCCESS, result); @@ -1353,7 +1353,7 @@ HWTEST2_F(ImmediateCommandListAppendWaitOnMem, givenAppendWaitOnMemWithDeviceMem EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); EXPECT_EQ(ZE_RESULT_SUCCESS, result); @@ -1376,7 +1376,7 @@ HWTEST_F(ImmediateCommandListAppendWriteToMem, givenAppendWriteToMemWithNoScopeT EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itorPC = findAll(cmdList.begin(), cmdList.end()); @@ -1405,7 +1405,7 @@ HWTEST_F(ImmediateCommandListAppendWriteToMem, givenAppendWriteToMemOnBcsWithNoS EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itorFDW = findAll(cmdList.begin(), cmdList.end()); @@ -1435,7 +1435,7 @@ HWTEST_F(ImmediateCommandListAppendWriteToMem, givenAppendWriteToMemWithScopeThe EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); auto itorPC = findAll(cmdList.begin(), cmdList.end()); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_xehp_and_later.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_xehp_and_later.cpp index 7438687e24..7f4a426ea8 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_xehp_and_later.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_xehp_and_later.cpp @@ -57,7 +57,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, CommandListTests, whenCommandListIsCreatedThenPCAnd ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); auto itorPc = find(cmdList.begin(), cmdList.end()); @@ -133,7 +133,7 @@ HWTEST2_F(CommandListTests, whenCommandListIsCreatedAndProgramExtendedPipeContro ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); auto itorPc = find(cmdList.begin(), cmdList.end()); @@ -202,7 +202,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, MultiTileCommandListTests, givenPartitionedCommandL ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); auto itorSba = find(cmdList.begin(), cmdList.end()); @@ -407,7 +407,7 @@ struct CommandListAppendLaunchKernelCompactL3FlushEventFixture : public ModuleFi EXPECT_EQ(arg.expectedKernelCount, event->getKernelCount()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->commandContainer.getCommandStream()->getCpuBase(), 0), commandList->commandContainer.getCommandStream()->getUsed())); @@ -650,7 +650,7 @@ struct CommandListSignalAllEventPacketFixture : public ModuleFixture { EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream->getCpuBase(), sizeBefore), (sizeAfter - sizeBefore))); @@ -738,7 +738,7 @@ struct CommandListSignalAllEventPacketFixture : public ModuleFixture { EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream->getCpuBase(), sizeBefore), (sizeAfter - sizeBefore))); @@ -889,7 +889,7 @@ struct CommandListSignalAllEventPacketFixture : public ModuleFixture { EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream->getCpuBase(), sizeBefore), (sizeAfter - sizeBefore))); @@ -974,7 +974,7 @@ struct CommandListSignalAllEventPacketFixture : public ModuleFixture { EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream->getCpuBase(), sizeBefore), (sizeAfter - sizeBefore))); @@ -1122,7 +1122,7 @@ struct CommandListSignalAllEventPacketFixture : public ModuleFixture { EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream->getCpuBase(), sizeBefore), (sizeAfter - sizeBefore))); @@ -1187,7 +1187,7 @@ struct CommandListSignalAllEventPacketFixture : public ModuleFixture { uint64_t gpuAddress = event->getCompletionFieldGpuAddress(device); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream->getCpuBase(), sizeBefore), (sizeAfter - sizeBefore))); @@ -1634,7 +1634,7 @@ void findStateCacheFlushPipeControlAfterWalker(LinearStream &cmdStream, size_t o using COMPUTE_WALKER = typename FamilyType::COMPUTE_WALKER; GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream.getCpuBase(), offset), size)); @@ -1669,7 +1669,7 @@ void find3dBtdCommand(LinearStream &cmdStream, size_t offset, size_t size, uint6 } GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream.getCpuBase(), offset), size)); @@ -1921,7 +1921,7 @@ HWTEST2_F(ImmediateFlushTaskGlobalStatelessCmdListTest, auto ssBaseAddress = globalSurfaceHeap->getHeapGpuBase(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -1943,7 +1943,7 @@ HWTEST2_F(ImmediateFlushTaskGlobalStatelessCmdListTest, EXPECT_EQ(ZE_RESULT_SUCCESS, result); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -1971,7 +1971,7 @@ HWTEST2_F(ImmediateFlushTaskGlobalStatelessCmdListTest, auto ssBaseAddress = globalSurfaceHeap->getHeapGpuBase(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -1993,7 +1993,7 @@ HWTEST2_F(ImmediateFlushTaskGlobalStatelessCmdListTest, EXPECT_EQ(ZE_RESULT_SUCCESS, result); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -2036,7 +2036,7 @@ HWTEST2_F(ImmediateFlushTaskCsrSharedHeapCmdListTest, auto ioBaseAddress = neoDevice->getGmmHelper()->decanonize(ioHeap->getHeapGpuBase()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -2065,7 +2065,7 @@ HWTEST2_F(ImmediateFlushTaskCsrSharedHeapCmdListTest, EXPECT_EQ(ZE_RESULT_SUCCESS, result); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -2098,7 +2098,7 @@ HWTEST2_F(ImmediateFlushTaskCsrSharedHeapCmdListTest, } GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -2123,7 +2123,7 @@ HWTEST2_F(ImmediateFlushTaskCsrSharedHeapCmdListTest, EXPECT_EQ(ZE_RESULT_SUCCESS, result); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -2153,7 +2153,7 @@ HWTEST2_F(ImmediateFlushTaskCsrSharedHeapCmdListTest, EXPECT_EQ(ZE_RESULT_SUCCESS, result); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -2173,7 +2173,7 @@ HWTEST2_F(ImmediateFlushTaskCsrSharedHeapCmdListTest, EXPECT_EQ(ZE_RESULT_SUCCESS, result); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -2214,7 +2214,7 @@ HWTEST2_F(ImmediateFlushTaskCsrSharedHeapCmdListTest, EXPECT_EQ(nullptr, ssHeap->getGraphicsAllocation()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -2255,7 +2255,7 @@ HWTEST2_F(ImmediateFlushTaskCsrSharedHeapCmdListTest, } GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -2298,7 +2298,7 @@ HWTEST2_F(ImmediateFlushTaskCsrSharedHeapCmdListTest, EXPECT_EQ(ZE_RESULT_SUCCESS, result); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -2344,7 +2344,7 @@ HWTEST2_F(ImmediateFlushTaskPrivateHeapCmdListTest, auto ioBaseAddress = neoDevice->getGmmHelper()->decanonize(ioHeap->getHeapGpuBase()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -2373,7 +2373,7 @@ HWTEST2_F(ImmediateFlushTaskPrivateHeapCmdListTest, EXPECT_EQ(ZE_RESULT_SUCCESS, result); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(csrStream.getCpuBase(), csrUsedBefore), csrUsedAfter - csrUsedBefore)); @@ -2397,7 +2397,7 @@ HWTEST2_F(CommandListCreate, givenPlatformSupportsHdcUntypedCacheFlushWhenAppend EXPECT_EQ(ZE_RESULT_SUCCESS, returnValue); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), commandStreamOffset), commandContainer.getCommandStream()->getUsed() - commandStreamOffset)); diff --git a/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_1.cpp b/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_1.cpp index b0ec871dca..bbf25a574a 100644 --- a/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_1.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_1.cpp @@ -514,7 +514,7 @@ HWTEST_F(CommandQueueCreate, givenUpdateTaskCountFromWaitAndRegularCmdListWhenDi commandQueue->executeCommandLists(1, &cmdListHandle, nullptr, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), commandQueue->commandStream.getUsed())); auto pipeControls = findAll(cmdList.begin(), cmdList.end()); @@ -555,7 +555,7 @@ HWTEST_F(CommandQueueCreate, givenUpdateTaskCountFromWaitAndImmediateCmdListWhen commandQueue->executeCommandLists(1, &cmdListHandle, nullptr, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), commandQueue->commandStream.getUsed())); auto pipeControls = findAll(cmdList.begin(), cmdList.end()); @@ -1474,7 +1474,7 @@ HWTEST2_F(ExecuteCommandListTests, givenCommandQueueHavingTwoB2BCommandListsThen auto usedSpaceAfter = commandQueue->commandStream.getUsed(); GenCmdList cmdList1; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList1, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); auto mediaVfeStates = findAll(cmdList1.begin(), cmdList1.end()); @@ -1518,7 +1518,7 @@ HWTEST2_F(ExecuteCommandListTests, givenTwoCommandQueuesHavingTwoB2BCommandLists auto usedSpaceAfter = commandQueue->commandStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); auto mediaVfeStates = findAll(cmdList.begin(), cmdList.end()); @@ -1551,7 +1551,7 @@ HWTEST2_F(ExecuteCommandListTests, givenTwoCommandQueuesHavingTwoB2BCommandLists usedSpaceAfter = commandQueue1->commandStream.getUsed(); GenCmdList cmdList1; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList1, ptrOffset(commandQueue1->commandStream.getCpuBase(), 0), usedSpaceAfter)); mediaVfeStates = findAll(cmdList1.begin(), cmdList1.end()); @@ -1596,7 +1596,7 @@ HWTEST2_F(ExecuteCommandListTests, givenTwoCommandQueuesHavingTwoB2BCommandLists auto usedSpaceAfter = commandQueue->commandStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); auto mediaVfeStates = findAll(cmdList.begin(), cmdList.end()); @@ -1629,7 +1629,7 @@ HWTEST2_F(ExecuteCommandListTests, givenTwoCommandQueuesHavingTwoB2BCommandLists usedSpaceAfter = commandQueue1->commandStream.getUsed(); GenCmdList cmdList1; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList1, ptrOffset(commandQueue1->commandStream.getCpuBase(), 0), usedSpaceAfter)); mediaVfeStates = findAll(cmdList1.begin(), cmdList1.end()); @@ -1674,7 +1674,7 @@ HWTEST2_F(ExecuteCommandListTests, givenTwoCommandQueuesHavingTwoB2BCommandLists auto usedSpaceAfter = commandQueue->commandStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); auto mediaVfeStates = findAll(cmdList.begin(), cmdList.end()); @@ -1707,7 +1707,7 @@ HWTEST2_F(ExecuteCommandListTests, givenTwoCommandQueuesHavingTwoB2BCommandLists usedSpaceAfter = commandQueue1->commandStream.getUsed(); GenCmdList cmdList1; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList1, ptrOffset(commandQueue1->commandStream.getCpuBase(), 0), usedSpaceAfter)); mediaVfeStates = findAll(cmdList1.begin(), cmdList1.end()); @@ -1752,7 +1752,7 @@ HWTEST2_F(ExecuteCommandListTests, givenTwoCommandQueuesHavingTwoB2BCommandLists auto usedSpaceAfter = commandQueue->commandStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); auto mediaVfeStates = findAll(cmdList.begin(), cmdList.end()); @@ -1784,7 +1784,7 @@ HWTEST2_F(ExecuteCommandListTests, givenTwoCommandQueuesHavingTwoB2BCommandLists usedSpaceAfter = commandQueue1->commandStream.getUsed(); GenCmdList cmdList1; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList1, ptrOffset(commandQueue1->commandStream.getCpuBase(), 0), usedSpaceAfter)); mediaVfeStates = findAll(cmdList1.begin(), cmdList1.end()); @@ -1828,7 +1828,7 @@ HWTEST2_F(ExecuteCommandListTests, givenTwoCommandQueuesHavingTwoB2BCommandLists auto usedSpaceAfter = commandQueue->commandStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); auto mediaVfeStates = findAll(cmdList.begin(), cmdList.end()); @@ -1858,7 +1858,7 @@ HWTEST2_F(ExecuteCommandListTests, givenTwoCommandQueuesHavingTwoB2BCommandLists usedSpaceAfter = commandQueue1->commandStream.getUsed(); GenCmdList cmdList1; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList1, ptrOffset(commandQueue1->commandStream.getCpuBase(), 0), usedSpaceAfter)); mediaVfeStates = findAll(cmdList1.begin(), cmdList1.end()); @@ -1894,7 +1894,7 @@ HWTEST_F(ExecuteCommandListTests, givenDirectSubmissionEnabledWhenExecutingCmdLi auto usedSpaceAfter = commandQueue->commandStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); auto bbStartCmds = findAll(cmdList.begin(), cmdList.end()); @@ -1938,7 +1938,7 @@ HWTEST_F(ExecuteCommandListTests, givenDirectSubmissionEnabledAndDebugFlagSetWhe auto usedSpaceAfter = commandQueue->commandStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); auto bbStartCmds = findAll(cmdList.begin(), cmdList.end()); diff --git a/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_2.cpp b/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_2.cpp index c7744fa61d..529a0f1b0a 100644 --- a/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_2.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_2.cpp @@ -475,7 +475,7 @@ HWTEST_F(CommandQueueSynchronizeTest, givenSynchronousCommandQueueWhenTagUpdateF using POST_SYNC_OPERATION = typename FamilyType::PIPE_CONTROL::POST_SYNC_OPERATION; using MI_BATCH_BUFFER_START = typename FamilyType::MI_BATCH_BUFFER_START; using MI_BATCH_BUFFER_END = typename FamilyType::MI_BATCH_BUFFER_END; - using PARSE = typename FamilyType::PARSE; + using Parse = typename FamilyType::Parse; DebugManagerStateRestore restore; NEO::debugManager.flags.UpdateTaskCountFromWait.set(3); @@ -528,7 +528,7 @@ HWTEST_F(CommandQueueSynchronizeTest, givenSynchronousCommandQueueWhenTagUpdateF EXPECT_EQ(expectedSize, executionConsumedSize); GenCmdList cmdList; - ASSERT_TRUE(PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(Parse::parseCommandBuffer(cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), usedSpaceBefore), executionConsumedSize)); diff --git a/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_3.cpp b/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_3.cpp index 91ef5694df..5f3e1479c9 100644 --- a/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_3.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_3.cpp @@ -163,7 +163,7 @@ HWTEST2_F(CommandQueueProgramSBATest, auto usedSpaceAfter = commandQueue->commandStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, commandQueue->commandStream.getCpuBase(), usedSpaceAfter)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, commandQueue->commandStream.getCpuBase(), usedSpaceAfter)); auto itor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), itor); @@ -203,7 +203,7 @@ HWTEST2_F(CommandQueueProgramSBATest, auto usedSpaceAfter = commandQueue->commandStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, commandQueue->commandStream.getCpuBase(), usedSpaceAfter)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, commandQueue->commandStream.getCpuBase(), usedSpaceAfter)); auto itor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), itor); @@ -249,7 +249,7 @@ HWTEST2_F(CommandQueueProgramSBATest, auto usedSpaceAfter = commandQueue->commandStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, commandQueue->commandStream.getCpuBase(), usedSpaceAfter)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, commandQueue->commandStream.getCpuBase(), usedSpaceAfter)); auto itor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), itor); @@ -712,7 +712,7 @@ HWTEST2_F(EngineInstancedDeviceExecuteTests, givenEngineInstancedDeviceWhenExecu commandQueue->executeCommandLists(1, &commandListHandle, nullptr, false); GenCmdList cmdList; - FamilyType::PARSE::parseCommandBuffer(cmdList, commandQueue->commandStream.getCpuBase(), commandQueue->commandStream.getUsed()); + FamilyType::Parse::parseCommandBuffer(cmdList, commandQueue->commandStream.getCpuBase(), commandQueue->commandStream.getUsed()); auto cfeStates = findAll(cmdList.begin(), cmdList.end()); @@ -763,7 +763,7 @@ HWTEST2_F(EngineInstancedDeviceExecuteTests, givenEngineInstancedDeviceWithFabri commandQueue->executeCommandLists(1, &commandListHandle, nullptr, false); GenCmdList cmdList; - FamilyType::PARSE::parseCommandBuffer(cmdList, commandQueue->commandStream.getCpuBase(), commandQueue->commandStream.getUsed()); + FamilyType::Parse::parseCommandBuffer(cmdList, commandQueue->commandStream.getCpuBase(), commandQueue->commandStream.getUsed()); auto cfeStates = findAll(cmdList.begin(), cmdList.end()); diff --git a/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_debugger.cpp b/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_debugger.cpp index 206c415b4a..e0b9cb8007 100644 --- a/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_debugger.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_debugger.cpp @@ -65,7 +65,7 @@ HWTEST_F(L0CmdQueueDebuggerTest, givenDebuggingEnabledWhenCmdListRequiringSbaPro ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream.getCpuBase(), 0), usedSpaceAfter)); auto pcItor = find(cmdList.begin(), cmdList.end()); @@ -141,7 +141,7 @@ HWTEST2_F(L0CmdQueueDebuggerTest, givenDebuggingEnabledAndRequiredGsbaWhenIntern ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream.getCpuBase(), 0), usedSpaceAfter)); auto pcItor = find(cmdList.begin(), cmdList.end()); diff --git a/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_enqueue_cmdlist.cpp b/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_enqueue_cmdlist.cpp index db5ba127ef..a755893a9b 100644 --- a/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_enqueue_cmdlist.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_enqueue_cmdlist.cpp @@ -113,7 +113,7 @@ using MultiDeviceCommandQueueExecuteCommandLists = TestcommandStream.getCpuBase(), 0), usedSpaceAfter)); @@ -258,7 +258,7 @@ HWTEST_F(CommandQueueExecuteCommandLists, givenFenceWhenExecutingCmdListThenFenc HWTEST2_F(CommandQueueExecuteCommandLists, whenUsingFenceThenExpectEndingPipeControlUpdatingTagAllocation, IsGen9) { using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL; using POST_SYNC_OPERATION = typename FamilyType::PIPE_CONTROL::POST_SYNC_OPERATION; - using PARSE = typename FamilyType::PARSE; + using Parse = typename FamilyType::Parse; ze_command_queue_desc_t desc{}; ze_result_t returnValue; @@ -289,7 +289,7 @@ HWTEST2_F(CommandQueueExecuteCommandLists, whenUsingFenceThenExpectEndingPipeCon ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(Parse::parseCommandBuffer(cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); @@ -312,7 +312,7 @@ HWTEST2_F(CommandQueueExecuteCommandLists, whenUsingFenceThenExpectEndingPipeCon HWTEST_F(CommandQueueExecuteCommandLists, whenExecutingCommandListsThenEndingPipeControlCommandIsExpected) { using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL; using POST_SYNC_OPERATION = typename FamilyType::PIPE_CONTROL::POST_SYNC_OPERATION; - using PARSE = typename FamilyType::PARSE; + using Parse = typename FamilyType::Parse; const ze_command_queue_desc_t desc{}; ze_result_t returnValue; @@ -335,7 +335,7 @@ HWTEST_F(CommandQueueExecuteCommandLists, whenExecutingCommandListsThenEndingPip ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(Parse::parseCommandBuffer(cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); @@ -357,7 +357,7 @@ using CommandQueueExecuteSupport = IsWithinProductscommandStream.getCpuBase(), 0), usedSpaceAfter)); @@ -409,7 +409,7 @@ HWTEST2_F(CommandQueueExecuteCommandLists, givenCommandQueueHaving2CommandListsT ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList1; - ASSERT_TRUE(PARSE::parseCommandBuffer(cmdList1, + ASSERT_TRUE(Parse::parseCommandBuffer(cmdList1, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); @@ -424,7 +424,7 @@ HWTEST2_F(CommandQueueExecuteCommandLists, givenCommandQueueHaving2CommandListsT HWTEST_F(CommandQueueExecuteCommandLists, givenMidThreadPreemptionWhenCommandsAreExecutedThenStateSipIsAdded) { using STATE_SIP = typename FamilyType::STATE_SIP; - using PARSE = typename FamilyType::PARSE; + using Parse = typename FamilyType::Parse; ze_command_queue_desc_t desc{}; desc.ordinal = 0u; @@ -459,7 +459,7 @@ HWTEST_F(CommandQueueExecuteCommandLists, givenMidThreadPreemptionWhenCommandsAr ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(PARSE::parseCommandBuffer(cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); + ASSERT_TRUE(Parse::parseCommandBuffer(cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); auto itorSip = find(cmdList.begin(), cmdList.end()); @@ -479,7 +479,7 @@ HWTEST_F(CommandQueueExecuteCommandLists, givenMidThreadPreemptionWhenCommandsAr HWTEST2_F(CommandQueueExecuteCommandLists, givenMidThreadPreemptionWhenCommandsAreExecutedTwoTimesThenStateSipIsAddedOnlyTheFirstTime, IsAtLeastSkl) { using STATE_SIP = typename FamilyType::STATE_SIP; - using PARSE = typename FamilyType::PARSE; + using Parse = typename FamilyType::Parse; ze_command_queue_desc_t desc{}; desc.ordinal = 0u; @@ -517,7 +517,7 @@ HWTEST2_F(CommandQueueExecuteCommandLists, givenMidThreadPreemptionWhenCommandsA ASSERT_GT(usedSpaceAfter1stExecute, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(PARSE::parseCommandBuffer(cmdList, commandQueue->commandStream.getCpuBase(), usedSpaceAfter1stExecute)); + ASSERT_TRUE(Parse::parseCommandBuffer(cmdList, commandQueue->commandStream.getCpuBase(), usedSpaceAfter1stExecute)); auto itorSip = find(cmdList.begin(), cmdList.end()); @@ -542,7 +542,7 @@ HWTEST2_F(CommandQueueExecuteCommandLists, givenMidThreadPreemptionWhenCommandsA auto cmdBufferAddress = ptrOffset(commandQueue->commandStream.getCpuBase(), usedSpaceAfter1stExecute); auto usedSpaceOn2ndExecute = commandQueue->commandStream.getUsed() - usedSpaceAfter1stExecute; - ASSERT_TRUE(PARSE::parseCommandBuffer(cmdList2, cmdBufferAddress, usedSpaceOn2ndExecute)); + ASSERT_TRUE(Parse::parseCommandBuffer(cmdList2, cmdBufferAddress, usedSpaceOn2ndExecute)); itorSip = find(cmdList2.begin(), cmdList2.end()); EXPECT_EQ(cmdList2.end(), itorSip); @@ -657,7 +657,7 @@ void CommandQueueExecuteCommandListsFixture::twoCommandListCommandPreemptionTest ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, commandQueue->commandStream.getCpuBase(), usedSpaceAfter)); using STATE_SIP = typename FamilyType::STATE_SIP; using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM; @@ -936,7 +936,7 @@ HWTEST_F(CommandQueueExecuteCommandLists, GivenCopyCommandQueueWhenExecutingCopy size_t usedSpaceAfter = commandQueue->commandStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, commandQueue->commandStream.getCpuBase(), usedSpaceAfter)); @@ -1001,7 +1001,7 @@ using CommandQueueExecuteCommandListSWTagsTests = TestcommandStream.getUsed(); @@ -1012,7 +1012,7 @@ HWTEST_F(CommandQueueExecuteCommandListSWTagsTests, givenEnableSWTagsWhenExecuti ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(PARSE::parseCommandBuffer(cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); + ASSERT_TRUE(Parse::parseCommandBuffer(cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); auto sdis = findAll(cmdList.begin(), cmdList.end()); ASSERT_LE(2u, sdis.size()); @@ -1026,7 +1026,7 @@ HWTEST_F(CommandQueueExecuteCommandListSWTagsTests, givenEnableSWTagsWhenExecuti HWTEST_F(CommandQueueExecuteCommandListSWTagsTests, givenEnableSWTagsAndCommandListWithDifferentPreemtpionWhenExecutingCommandListThenPipeControlReasonTagIsInserted) { using MI_NOOP = typename FamilyType::MI_NOOP; - using PARSE = typename FamilyType::PARSE; + using Parse = typename FamilyType::Parse; CommandList::whiteboxCast(CommandList::fromHandle(commandLists[0]))->commandListPreemptionMode = PreemptionMode::Disabled; auto usedSpaceBefore = commandQueue->commandStream.getUsed(); @@ -1038,7 +1038,7 @@ HWTEST_F(CommandQueueExecuteCommandListSWTagsTests, givenEnableSWTagsAndCommandL ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(PARSE::parseCommandBuffer(cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); + ASSERT_TRUE(Parse::parseCommandBuffer(cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); auto noops = findAll(cmdList.begin(), cmdList.end()); ASSERT_LE(2u, noops.size()); @@ -1096,7 +1096,7 @@ void findPartitionRegister(GenCmdList &cmdList, bool expectToFind) { HWTEST2_F(MultiDeviceCommandQueueExecuteCommandLists, givenMultiplePartitionCountWhenExecutingCmdListThenExpectMmioProgrammingAndCorrectEstimation, IsAtLeastXeHpCore) { using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL; using POST_SYNC_OPERATION = typename FamilyType::PIPE_CONTROL::POST_SYNC_OPERATION; - using PARSE = typename FamilyType::PARSE; + using Parse = typename FamilyType::Parse; auto neoDevice = device->getNEODevice(); auto csr = reinterpret_cast *>(neoDevice->getDefaultEngine().commandStreamReceiver); @@ -1140,7 +1140,7 @@ HWTEST2_F(MultiDeviceCommandQueueExecuteCommandLists, givenMultiplePartitionCoun // 1st call then initialize registers GenCmdList cmdList; - ASSERT_TRUE(PARSE::parseCommandBuffer(cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), usedSpaceBefore1stExecute), usedSpaceOn1stExecute)); + ASSERT_TRUE(Parse::parseCommandBuffer(cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), usedSpaceBefore1stExecute), usedSpaceOn1stExecute)); findPartitionRegister(cmdList, true); auto usedSpaceBefore2ndExecute = commandQueue->commandStream.getUsed(); @@ -1156,7 +1156,7 @@ HWTEST2_F(MultiDeviceCommandQueueExecuteCommandLists, givenMultiplePartitionCoun } cmdList.clear(); - ASSERT_TRUE(PARSE::parseCommandBuffer(cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), usedSpaceBefore2ndExecute), cmdBufferSizeWithoutMmioProgramming)); + ASSERT_TRUE(Parse::parseCommandBuffer(cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), usedSpaceBefore2ndExecute), cmdBufferSizeWithoutMmioProgramming)); findPartitionRegister(cmdList, false); auto usedSpaceBefore3rdExecute = commandQueue->commandStream.getUsed(); @@ -1169,7 +1169,7 @@ HWTEST2_F(MultiDeviceCommandQueueExecuteCommandLists, givenMultiplePartitionCoun EXPECT_GE(cmdBufferSizeWithMmioProgramming, cmdBufferSizeWithoutMmioProgramming); cmdList.clear(); - ASSERT_TRUE(PARSE::parseCommandBuffer(cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), usedSpaceBefore3rdExecute), cmdBufferSizeWithMmioProgramming)); + ASSERT_TRUE(Parse::parseCommandBuffer(cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), usedSpaceBefore3rdExecute), cmdBufferSizeWithMmioProgramming)); findPartitionRegister(cmdList, false); auto pipeControlList = findAll(cmdList.begin(), cmdList.end()); @@ -1191,7 +1191,7 @@ HWTEST2_F(MultiDeviceCommandQueueExecuteCommandLists, givenMultiplePartitionCoun HWTEST_F(CommandQueueExecuteCommandLists, GivenUpdateTaskCountFromWaitWhenExecutingCommandListWithFenceThenDispatchPostSyncCommandAndUpdateFlushedTaskCount) { using MI_FLUSH_DW = typename FamilyType::MI_FLUSH_DW; - using PARSE = typename FamilyType::PARSE; + using Parse = typename FamilyType::Parse; DebugManagerStateRestore restorer; debugManager.flags.UpdateTaskCountFromWait.set(1); @@ -1226,7 +1226,7 @@ HWTEST_F(CommandQueueExecuteCommandLists, GivenUpdateTaskCountFromWaitWhenExecut size_t usedSpaceAfter = commandQueue->commandStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(PARSE::parseCommandBuffer(cmdList, commandQueue->commandStream.getCpuBase(), usedSpaceAfter)); + ASSERT_TRUE(Parse::parseCommandBuffer(cmdList, commandQueue->commandStream.getCpuBase(), usedSpaceAfter)); uint32_t foundPostSyncMiFlush = 0u; auto miFlushList = findAll(cmdList.begin(), cmdList.end()); @@ -1247,7 +1247,7 @@ HWTEST_F(CommandQueueExecuteCommandLists, GivenUpdateTaskCountFromWaitWhenExecut HWTEST_F(CommandQueueExecuteCommandLists, GivenCopyCommandQueueWhenExecutingCopyCommandListWithFenceThenExpectSingleCopyPostSyncCommand) { using MI_FLUSH_DW = typename FamilyType::MI_FLUSH_DW; - using PARSE = typename FamilyType::PARSE; + using Parse = typename FamilyType::Parse; ze_result_t returnValue; std::unique_ptr commandList(CommandList::create(productFamily, device, NEO::EngineGroupType::copy, 0u, returnValue, false)); @@ -1279,7 +1279,7 @@ HWTEST_F(CommandQueueExecuteCommandLists, GivenCopyCommandQueueWhenExecutingCopy size_t usedSpaceAfter = commandQueue->commandStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(PARSE::parseCommandBuffer(cmdList, commandQueue->commandStream.getCpuBase(), usedSpaceAfter)); + ASSERT_TRUE(Parse::parseCommandBuffer(cmdList, commandQueue->commandStream.getCpuBase(), usedSpaceAfter)); uint32_t foundPostSyncMiFlush = 0u; auto miFlushList = findAll(cmdList.begin(), cmdList.end()); diff --git a/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_enqueue_cmdlist_2.cpp b/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_enqueue_cmdlist_2.cpp index 0e8b0f4db7..7ba90d5d68 100644 --- a/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_enqueue_cmdlist_2.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdqueue/test_cmdqueue_enqueue_cmdlist_2.cpp @@ -106,7 +106,7 @@ HWTEST2_F(CommandQueueExecuteCommandListsSimpleTest, whenUsingFenceThenLastPipeC ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); auto pipeControls = findAll(cmdList.begin(), cmdList.end()); @@ -156,7 +156,7 @@ HWTEST2_F(CommandQueueExecuteCommandListsSimpleTest, givenTwoCommandQueuesUsingS ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), usedSpaceBefore), usedSpaceAfter - usedSpaceBefore)); @@ -180,7 +180,7 @@ HWTEST2_F(CommandQueueExecuteCommandListsSimpleTest, givenTwoCommandQueuesUsingS usedSpaceAfter = commandQueue2->commandStream.getUsed(); ASSERT_GT(usedSpaceAfter, usedSpaceBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue2->commandStream.getCpuBase(), usedSpaceBefore), usedSpaceAfter - usedSpaceBefore)); @@ -219,7 +219,7 @@ HWTEST2_F(CommandQueueExecuteCommandListsSimpleTest, givenTwoCommandQueuesUsingS ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), usedSpaceBefore), usedSpaceAfter - usedSpaceBefore)); @@ -249,7 +249,7 @@ HWTEST2_F(CommandQueueExecuteCommandListsSimpleTest, givenTwoCommandQueuesUsingS usedSpaceAfter = commandQueue2->commandStream.getUsed(); ASSERT_GT(usedSpaceAfter, usedSpaceBefore); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue2->commandStream.getCpuBase(), usedSpaceBefore), usedSpaceAfter - usedSpaceBefore)); @@ -450,7 +450,7 @@ HWTEST_F(PauseOnGpuTests, givenPauseOnEnqueueFlagSetWhenDispatchWalkersThenInser ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); findSemaphores(cmdList); @@ -477,7 +477,7 @@ HWTEST_F(PauseOnGpuTests, givenPauseOnEnqueueFlagSetToAlwaysWhenDispatchWalkersT ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); findSemaphores(cmdList); @@ -505,7 +505,7 @@ HWTEST_F(PauseOnGpuTests, givenPauseModeSetToBeforeOnlyWhenDispatchingThenInsert ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); findSemaphores(cmdList); @@ -533,7 +533,7 @@ HWTEST_F(PauseOnGpuTests, givenPauseModeSetToAfterOnlyWhenDispatchingThenInsertP ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); findSemaphores(cmdList); @@ -560,7 +560,7 @@ HWTEST_F(PauseOnGpuTests, givenPauseModeSetToBeforeAndAfterWhenDispatchingThenIn ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); findSemaphores(cmdList); @@ -609,7 +609,7 @@ HWTEST_F(PauseOnGpuWithImmediateCommandListTests, givenPauseOnEnqueueFlagSetWhen ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); findSemaphores(cmdList); @@ -636,7 +636,7 @@ HWTEST_F(PauseOnGpuWithImmediateCommandListTests, givenPauseOnEnqueueFlagSetToAl ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); findSemaphores(cmdList); @@ -664,7 +664,7 @@ HWTEST_F(PauseOnGpuWithImmediateCommandListTests, givenPauseModeSetToBeforeOnlyW ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); findSemaphores(cmdList); @@ -692,7 +692,7 @@ HWTEST_F(PauseOnGpuWithImmediateCommandListTests, givenPauseModeSetToAfterOnlyWh ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); findSemaphores(cmdList); @@ -719,7 +719,7 @@ HWTEST_F(PauseOnGpuWithImmediateCommandListTests, givenPauseModeSetToBeforeAndAf ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); findSemaphores(cmdList); @@ -815,7 +815,7 @@ HWTEST_F(CommandQueueExecuteCommandListsSimpleTest, GivenDirtyFlagForContextInBi ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); auto pipeControls = findAll(cmdList.begin(), cmdList.end()); diff --git a/level_zero/core/test/unit_tests/sources/debugger/test_l0_debugger_1.cpp b/level_zero/core/test/unit_tests/sources/debugger/test_l0_debugger_1.cpp index c218adc5d6..a4d4788331 100644 --- a/level_zero/core/test/unit_tests/sources/debugger/test_l0_debugger_1.cpp +++ b/level_zero/core/test/unit_tests/sources/debugger/test_l0_debugger_1.cpp @@ -105,7 +105,7 @@ HWTEST_F(L0DebuggerPerContextAddressSpaceTest, givenDebuggingEnabledWhenCommandL ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); auto miLoadImm = findAll(cmdList.begin(), cmdList.end()); @@ -179,7 +179,7 @@ HWTEST_F(L0DebuggerPerContextAddressSpaceTest, givenDebuggingEnabledWhenTwoComma auto usedSpaceAfter = commandQueue->commandStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, commandQueue->commandStream.getCpuBase(), usedSpaceAfter)); @@ -192,7 +192,7 @@ HWTEST_F(L0DebuggerPerContextAddressSpaceTest, givenDebuggingEnabledWhenTwoComma auto usedSpaceAfter2 = commandQueue2->commandStream.getUsed(); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, commandQueue2->commandStream.getCpuBase(), usedSpaceAfter2)); diff --git a/level_zero/core/test/unit_tests/sources/debugger/test_l0_debugger_2.cpp b/level_zero/core/test/unit_tests/sources/debugger/test_l0_debugger_2.cpp index e2126d83bb..8a19bd4c5f 100644 --- a/level_zero/core/test/unit_tests/sources/debugger/test_l0_debugger_2.cpp +++ b/level_zero/core/test/unit_tests/sources/debugger/test_l0_debugger_2.cpp @@ -46,7 +46,7 @@ HWTEST_P(L0DebuggerWithBlitterTest, givenFlushTaskSubmissionEnabledWhenCommandLi ASSERT_GE(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, commandList->getCmdContainer().getCommandStream()->getCpuBase(), usedSpaceAfter)); auto sbaItor = find(cmdList.begin(), cmdList.end()); @@ -76,7 +76,7 @@ HWTEST_P(L0DebuggerWithBlitterTest, givenFlushTaskSubmissionDisabledWhenCommandL ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, commandList->getCmdContainer().getCommandStream()->getCpuBase(), usedSpaceAfter)); auto sbaItor = find(cmdList.begin(), cmdList.end()); @@ -139,7 +139,7 @@ HWTEST2_F(singleAddressSpaceModeTest, givenImmediateCommandListWhenExecutingWith EXPECT_NE(nullptr, csr.lastFlushedCommandStream); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, commandList->csr->getCS().getCpuBase(), commandList->csr->getCS().getUsed())); bool gpr15Found = false; auto miLoadImm = findAll(cmdList.begin(), cmdList.end()); @@ -184,7 +184,7 @@ HWTEST2_F(singleAddressSpaceModeTest, givenUseCsrImmediateSubmissionEnabledAndSh EXPECT_NE(nullptr, csr.lastFlushedCommandStream); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, commandList->csr->getCS().getCpuBase(), commandList->csr->getCS().getUsed())); bool gpr15Found = false; auto miLoadImm = findAll(cmdList.begin(), cmdList.end()); @@ -238,7 +238,7 @@ HWTEST2_P(L0DebuggerWithBlitterTest, givenImmediateCommandListWhenExecutingWithF EXPECT_TRUE(csr.isMadeResident(debugSurface)); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, commandList->csr->getCS().getCpuBase(), commandList->csr->getCS().getUsed())); auto sipItor = find(cmdList.begin(), cmdList.end()); @@ -283,7 +283,7 @@ HWTEST2_P(L0DebuggerWithBlitterTest, givenImmediateFlushTaskWhenExecutingKernelT EXPECT_TRUE(csr.isMadeResident(debugSurface)); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, commandList->csr->getCS().getCpuBase(), commandList->csr->getCS().getUsed())); auto sipItor = find(cmdList.begin(), cmdList.end()); @@ -323,7 +323,7 @@ HWTEST_P(L0DebuggerWithBlitterTest, givenInternalUsageImmediateCommandListWhenEx EXPECT_FALSE(csr.isMadeResident(debugSurface)); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, commandList->csr->getCS().getCpuBase(), commandList->csr->getCS().getUsed())); auto sipItor = find(cmdList.begin(), cmdList.end()); @@ -589,7 +589,7 @@ HWTEST_P(L0DebuggerWithBlitterTest, givenDebuggingEnabledWhenCommandListIsExecut ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); auto miLoadImm = findAll(cmdList.begin(), cmdList.end()); diff --git a/level_zero/core/test/unit_tests/sources/debugger/test_l0_debugger_sba_tracking.cpp b/level_zero/core/test/unit_tests/sources/debugger/test_l0_debugger_sba_tracking.cpp index e4fdb89e4a..468d2c06af 100644 --- a/level_zero/core/test/unit_tests/sources/debugger/test_l0_debugger_sba_tracking.cpp +++ b/level_zero/core/test/unit_tests/sources/debugger/test_l0_debugger_sba_tracking.cpp @@ -150,7 +150,7 @@ HWTEST2_F(L0DebuggerPerContextAddressSpaceTest, givenDebuggingEnabledAndRequired ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); auto sbaItor = find(cmdList.begin(), cmdList.end()); @@ -294,7 +294,7 @@ HWTEST2_F(L0DebuggerTest, givenDebuggingEnabledWhenNonCopyCommandListIsInititali ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, commandList->getCmdContainer().getCommandStream()->getCpuBase(), usedSpaceAfter)); auto sbaItor = find(cmdList.begin(), cmdList.end()); @@ -322,7 +322,7 @@ HWTEST2_F(L0DebuggerTest, givenDebuggingEnabledWhenNonCopyCommandListIsInititali commandList = CommandList::fromHandle(commandListHandle); cmdList.clear(); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, commandList->getCmdContainer().getCommandStream()->getCpuBase(), commandList->getCmdContainer().getCommandStream()->getUsed())); @@ -433,7 +433,7 @@ HWTEST2_F(L0DebuggerSingleAddressSpace, givenDebuggingEnabledWhenCommandListIsEx ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); auto miLoadImm = findAll(cmdList.begin(), cmdList.end()); diff --git a/level_zero/core/test/unit_tests/xe_hpc_core/pvc/test_cmdlist_pvc.cpp b/level_zero/core/test/unit_tests/xe_hpc_core/pvc/test_cmdlist_pvc.cpp index 67915633e8..53fac7ce21 100644 --- a/level_zero/core/test/unit_tests/xe_hpc_core/pvc/test_cmdlist_pvc.cpp +++ b/level_zero/core/test/unit_tests/xe_hpc_core/pvc/test_cmdlist_pvc.cpp @@ -63,7 +63,7 @@ PVCTEST_F(CommandListEventFenceTestsPvc, givenCommandListWithProfilingEventAfter commandList->appendEventForProfiling(event.get(), false, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->commandContainer.getCommandStream()->getCpuBase(), 0), commandList->commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -80,7 +80,7 @@ PVCTEST_F(CommandListAppendBarrierXeHpcCore, givenCommandListWhenAppendingBarrie ze_result_t returnValue = commandList->appendBarrier(nullptr, 0, nullptr, false); EXPECT_EQ(returnValue, ZE_RESULT_SUCCESS); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->commandContainer.getCommandStream()->getCpuBase(), 0), commandList->commandContainer.getCommandStream()->getUsed())); bool correctPcFound = false; diff --git a/level_zero/core/test/unit_tests/xe_hpc_core/test_cmdlist_xe_hpc_core.cpp b/level_zero/core/test/unit_tests/xe_hpc_core/test_cmdlist_xe_hpc_core.cpp index 5525e50454..bab135735b 100644 --- a/level_zero/core/test/unit_tests/xe_hpc_core/test_cmdlist_xe_hpc_core.cpp +++ b/level_zero/core/test/unit_tests/xe_hpc_core/test_cmdlist_xe_hpc_core.cpp @@ -659,7 +659,7 @@ HWTEST2_F(CommandListEventFenceTestsXeHpcCore, givenCommandListWithProfilingEven commandList->appendEventForProfiling(event.get(), false, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->commandContainer.getCommandStream()->getCpuBase(), 0), commandList->commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -689,7 +689,7 @@ HWTEST2_F(CommandListEventFenceTestsXeHpcCore, givenCommandListWithRegularEventA commandList->appendSignalEventPostWalker(event.get(), false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->commandContainer.getCommandStream()->getCpuBase(), 0), commandList->commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -716,7 +716,7 @@ HWTEST2_F(CommandListAppendRangesBarrierXeHpcCore, givenCallToAppendRangesBarrie const size_t sizes[] = {size}; commandList->applyMemoryRangesBarrier(1, sizes, ranges); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->commandContainer.getCommandStream()->getCpuBase(), 0), commandList->commandContainer.getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); diff --git a/level_zero/core/test/unit_tests/xe_hpc_core/test_cmdqueue_xe_hpc_core.cpp b/level_zero/core/test/unit_tests/xe_hpc_core/test_cmdqueue_xe_hpc_core.cpp index 20384f8c80..792acb8b0d 100644 --- a/level_zero/core/test/unit_tests/xe_hpc_core/test_cmdqueue_xe_hpc_core.cpp +++ b/level_zero/core/test/unit_tests/xe_hpc_core/test_cmdqueue_xe_hpc_core.cpp @@ -77,7 +77,7 @@ HWTEST2_F(CommandQueueCommandsXeHpc, givenCommandQueueWhenExecutingCommandListsT auto used = commandQueue->commandStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, commandQueue->commandStream.getCpuBase(), used)); auto itor = find(cmdList.begin(), cmdList.end()); @@ -109,7 +109,7 @@ HWTEST2_F(CommandQueueCommandsXeHpc, givenCommandQueueWhenExecutingCommandListsF GenCmdList cmdList; auto cmdBufferAddress = ptrOffset(commandQueue->commandStream.getCpuBase(), usedSpaceAfter1stExecute); - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdBufferAddress, usedSpaceOn2ndExecute)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdBufferAddress, usedSpaceOn2ndExecute)); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_EQ(cmdList.end(), itor); @@ -1044,7 +1044,7 @@ HWTEST2_F(CommandQueueCommandsXeHpc, givenRelaxedOrderingNotAllowedWhenDispatchS uint32_t semaphoresFound = 0; GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, commandList0->getCmdContainer().getCommandStream()->getCpuBase(), commandList0->getCmdContainer().getCommandStream()->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, commandList0->getCmdContainer().getCommandStream()->getCpuBase(), commandList0->getCmdContainer().getCommandStream()->getUsed())); for (auto &cmd : cmdList) { if (genCmdCast(cmd)) { @@ -1274,7 +1274,7 @@ HWTEST2_F(CommandQueueCommandsXeHpc, givenSplitBcsCopyAndImmediateCommandListWhe EXPECT_EQ(static_cast(static_cast(testL0Device.get())->bcsSplit.cmdQs[3])->getTaskCount(), 1u); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, commandList0->getCmdContainer().getCommandStream()->getCpuBase(), commandList0->getCmdContainer().getCommandStream()->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, commandList0->getCmdContainer().getCommandStream()->getCpuBase(), commandList0->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -1337,7 +1337,7 @@ HWTEST2_F(CommandQueueCommandsXeHpc, givenSplitBcsCopyAndImmediateCommandListWhe EXPECT_EQ(static_cast(static_cast(testL0Device.get())->bcsSplit.cmdQs[3])->getTaskCount(), 1u); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, commandList0->getCmdContainer().getCommandStream()->getCpuBase(), commandList0->getCmdContainer().getCommandStream()->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, commandList0->getCmdContainer().getCommandStream()->getCpuBase(), commandList0->getCmdContainer().getCommandStream()->getUsed())); auto itor = cmdList.begin(); for (uint32_t i = 0u; i < static_cast(testL0Device.get())->bcsSplit.cmdQs.size() * 2; ++i) { @@ -1411,7 +1411,7 @@ HWTEST2_F(CommandQueueCommandsXeHpc, givenSplitBcsCopyAndImmediateCommandListWhe EXPECT_EQ(static_cast(static_cast(testL0Device.get())->bcsSplit.cmdQs[3])->getTaskCount(), 1u); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, commandList0->getCmdContainer().getCommandStream()->getCpuBase(), commandList0->getCmdContainer().getCommandStream()->getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, commandList0->getCmdContainer().getCommandStream()->getCpuBase(), commandList0->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); diff --git a/level_zero/core/test/unit_tests/xe_hpg_core/dg2/test_cache_flush_dg2.cpp b/level_zero/core/test/unit_tests/xe_hpg_core/dg2/test_cache_flush_dg2.cpp index c2bcdeb52d..9aa1c5b147 100644 --- a/level_zero/core/test/unit_tests/xe_hpg_core/dg2/test_cache_flush_dg2.cpp +++ b/level_zero/core/test/unit_tests/xe_hpg_core/dg2/test_cache_flush_dg2.cpp @@ -49,7 +49,7 @@ HWTEST2_F(CacheFlushDG2Tests, givenCommandStreamWithSingleL3RangeAndNonZeroPostS hardwareInfo); GenCmdList cmdList; - EXPECT_TRUE(FamilyType::PARSE::parseCommandBuffer( + EXPECT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(cmdStream->getCpuBase(), 0), cmdStream->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), itor); diff --git a/level_zero/core/test/unit_tests/xe_hpg_core/dg2/test_cmdlist_dg2.cpp b/level_zero/core/test/unit_tests/xe_hpg_core/dg2/test_cmdlist_dg2.cpp index 730ac9a332..ef8442c2f9 100644 --- a/level_zero/core/test/unit_tests/xe_hpg_core/dg2/test_cmdlist_dg2.cpp +++ b/level_zero/core/test/unit_tests/xe_hpg_core/dg2/test_cmdlist_dg2.cpp @@ -47,7 +47,7 @@ HWTEST2_F(CommandListTests, givenDG2WithBSteppingWhenCreatingCommandListThenAddi ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); auto itor = find(cmdList.begin(), cmdList.end()); diff --git a/level_zero/core/test/unit_tests/xe_hpg_core/test_cmdlist_xe_hpg_core.cpp b/level_zero/core/test/unit_tests/xe_hpg_core/test_cmdlist_xe_hpg_core.cpp index 9c6866756c..e624786240 100644 --- a/level_zero/core/test/unit_tests/xe_hpg_core/test_cmdlist_xe_hpg_core.cpp +++ b/level_zero/core/test/unit_tests/xe_hpg_core/test_cmdlist_xe_hpg_core.cpp @@ -50,7 +50,7 @@ HWTEST2_F(CommandListCreate, WhenCreatingCommandListThenBindingTablePoolAllocAdd ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), usedSpaceAfter)); @@ -95,7 +95,7 @@ HWTEST2_F(CommandListCreate, givenNotCopyCommandListWhenProfilingEventBeforeComm commandList->appendEventForProfiling(event.get(), true, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -131,7 +131,7 @@ HWTEST2_F(CommandListCreate, givenNotCopyCommandListWhenProfilingEventAfterComma commandList->appendEventForProfiling(event.get(), false, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); @@ -165,7 +165,7 @@ HWTEST2_F(CommandListCreate, givenCopyCommandListWhenProfilingEventThenStoreRegC auto event = std::unique_ptr(L0::Event::create(eventPool.get(), &eventDesc, device)); commandList->appendEventForProfiling(event.get(), false, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -189,7 +189,7 @@ HWTEST2_F(CommandListCreate, givenAllocationsWhenAppendRangesBarrierThenL3Contro const size_t sizes[] = {size}; commandList->applyMemoryRangesBarrier(1, sizes, ranges); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -214,7 +214,7 @@ HWTEST2_F(CommandListCreate, givenAllocationWithSizeTooBigForL3ControlWhenAppend const size_t sizes[] = {size}; commandList->applyMemoryRangesBarrier(1, sizes, ranges); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -239,7 +239,7 @@ HWTEST2_F(CommandListCreate, givenRangeSizeTwiceBiggerThanAllocWhenAppendRangesB const size_t sizes[] = {2 * size}; commandList->applyMemoryRangesBarrier(1, sizes, ranges); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_EQ(cmdList.end(), itor); @@ -257,7 +257,7 @@ HWTEST2_F(CommandListCreate, givenRangeNotInSvmManagerThanAllocWhenAppendRangesB const size_t sizes[] = {size}; commandList->applyMemoryRangesBarrier(1, sizes, ranges); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_EQ(cmdList.end(), itor); @@ -282,7 +282,7 @@ HWTEST2_F(CommandListCreate, givenRangeNotAlignedToPageWhenAppendRangesBarrierTh const size_t sizes[] = {size}; commandList->applyMemoryRangesBarrier(1, sizes, ranges); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -311,7 +311,7 @@ HWTEST2_F(CommandListCreate, givenRangeBetweenTwoPagesWhenAppendRangesBarrierThe const size_t sizes[] = {size}; commandList->applyMemoryRangesBarrier(1, sizes, ranges); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), 0), commandList->getCmdContainer().getCommandStream()->getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -447,7 +447,7 @@ HWTEST2_F(CommandListAppendLaunchKernelXeHpgCore, givenEventWhenAppendKernelIsCa EXPECT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - EXPECT_TRUE(FamilyType::PARSE::parseCommandBuffer( + EXPECT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandList->getCmdContainer().getCommandStream()->getCpuBase(), usedSpaceBefore), usedSpaceAfter - usedSpaceBefore)); diff --git a/level_zero/core/test/unit_tests/xe_hpg_core/test_cmdqueue_enqueuecommandlist_xe_hpg_core.cpp b/level_zero/core/test/unit_tests/xe_hpg_core/test_cmdqueue_enqueuecommandlist_xe_hpg_core.cpp index 1e275a4d58..a4f21e49ff 100644 --- a/level_zero/core/test/unit_tests/xe_hpg_core/test_cmdqueue_enqueuecommandlist_xe_hpg_core.cpp +++ b/level_zero/core/test/unit_tests/xe_hpg_core/test_cmdqueue_enqueuecommandlist_xe_hpg_core.cpp @@ -49,7 +49,7 @@ XE_HPG_CORETEST_F(CommandQueueExecuteCommandListsXeHpgCore, WhenExecutingCmdList ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); using CFE_STATE = typename FamilyType::CFE_STATE; @@ -95,7 +95,7 @@ XE_HPG_CORETEST_F(CommandQueueExecuteCommandListsXeHpgCore, WhenExecutingCmdList ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandQueue->commandStream.getCpuBase(), 0), usedSpaceAfter)); using STATE_BASE_ADDRESS = typename FamilyType::STATE_BASE_ADDRESS; diff --git a/opencl/test/unit_test/command_queue/dispatch_walker_tests.cpp b/opencl/test/unit_test/command_queue/dispatch_walker_tests.cpp index 916e31d67d..7c0ed68df6 100644 --- a/opencl/test/unit_test/command_queue/dispatch_walker_tests.cpp +++ b/opencl/test/unit_test/command_queue/dispatch_walker_tests.cpp @@ -1137,7 +1137,7 @@ HWTEST_P(DispatchWalkerTestForAuxTranslation, givenKernelWhenAuxToNonAuxWhenTran auto sizeUsed = cmdStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, buffer, sizeUsed)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, buffer, sizeUsed)); auto pipeControls = findAll(cmdList.begin(), cmdList.end()); @@ -1186,7 +1186,7 @@ HWTEST_P(DispatchWalkerTestForAuxTranslation, givenKernelWhenNonAuxToAuxWhenTran auto sizeUsed = cmdStream.getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, buffer, sizeUsed)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, buffer, sizeUsed)); auto pipeControls = findAll(cmdList.begin(), cmdList.end()); @@ -1231,7 +1231,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, ProfilingCommandsTest, givenKernelWhenProfilingComma GpgpuWalkerHelper::dispatchProfilingCommandsStart(*hwTimeStamp2, &cmdStream, pDevice->getRootDeviceEnvironment()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream.getCpuBase(), cmdStream.getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream.getCpuBase(), cmdStream.getUsed())); auto itorStoreReg = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), itorStoreReg); @@ -1302,7 +1302,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, ProfilingCommandsTest, givenKernelWhenProfilingComma GpgpuWalkerHelper::dispatchProfilingCommandsEnd(*hwTimeStamp2, &cmdStream, pDevice->getRootDeviceEnvironment()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream.getCpuBase(), cmdStream.getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream.getCpuBase(), cmdStream.getUsed())); auto itorStoreReg = find(cmdList.begin(), cmdList.end()); ASSERT_NE(cmdList.end(), itorStoreReg); diff --git a/opencl/test/unit_test/command_queue/enqueue_barrier_tests.cpp b/opencl/test/unit_test/command_queue/enqueue_barrier_tests.cpp index 607d929b50..0cb53f8d73 100644 --- a/opencl/test/unit_test/command_queue/enqueue_barrier_tests.cpp +++ b/opencl/test/unit_test/command_queue/enqueue_barrier_tests.cpp @@ -90,7 +90,7 @@ HWTEST_F(BarrierTest, GivenCsrTaskLevelGreaterThenCmdqTaskLevelWhenEnqueingBarri auto sizeUsed = pCS->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, pCmdBuffer, sizeUsed)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, pCmdBuffer, sizeUsed)); // If CSR > CQ then a PC isn't required. auto itorCmd = find(cmdList.begin(), cmdList.end()); diff --git a/opencl/test/unit_test/command_queue/enqueue_copy_buffer_rect_tests.cpp b/opencl/test/unit_test/command_queue/enqueue_copy_buffer_rect_tests.cpp index c9c016ba5a..2bd9e406b1 100644 --- a/opencl/test/unit_test/command_queue/enqueue_copy_buffer_rect_tests.cpp +++ b/opencl/test/unit_test/command_queue/enqueue_copy_buffer_rect_tests.cpp @@ -290,7 +290,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueCopyBufferRectTest, WhenCopyingBufferRect2DTh EXPECT_EQ(0u, cmd->getInterfaceDescriptorTotalLength() % alignmentTotalLength); // Generically validate this command - FamilyType::PARSE::template validateCommand(cmdList.begin(), itorMediaInterfaceDescriptorLoad); + FamilyType::Parse::template validateCommand(cmdList.begin(), itorMediaInterfaceDescriptorLoad); } HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueCopyBufferRectTest, WhenCopyingBufferRect2DThenInterfaceDescriptorDataIsCorrect) { @@ -415,7 +415,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueCopyBufferRectTest, WhenCopyingBufferRect3DTh EXPECT_EQ(0u, cmd->getInterfaceDescriptorTotalLength() % alignmentTotalLength); // Generically validate this command - FamilyType::PARSE::template validateCommand(cmdList.begin(), itorMediaInterfaceDescriptorLoad); + FamilyType::Parse::template validateCommand(cmdList.begin(), itorMediaInterfaceDescriptorLoad); } HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueCopyBufferRectTest, WhenCopyingBufferRect3DThenInterfaceDescriptorDataIsCorrect) { diff --git a/opencl/test/unit_test/command_queue/enqueue_copy_buffer_tests.cpp b/opencl/test/unit_test/command_queue/enqueue_copy_buffer_tests.cpp index 3f4592d389..70befcd85d 100644 --- a/opencl/test/unit_test/command_queue/enqueue_copy_buffer_tests.cpp +++ b/opencl/test/unit_test/command_queue/enqueue_copy_buffer_tests.cpp @@ -301,7 +301,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueCopyBufferTest, WhenCopyingBufferThenMediaInt EXPECT_EQ(0u, cmd->getInterfaceDescriptorTotalLength() % alignmentTotalLength); // Generically validate this command - FamilyType::PARSE::template validateCommand(cmdList.begin(), itorMediaInterfaceDescriptorLoad); + FamilyType::Parse::template validateCommand(cmdList.begin(), itorMediaInterfaceDescriptorLoad); } HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueCopyBufferTest, WhenCopyingBufferThenInterfaceDescriptorDataIsCorrect) { diff --git a/opencl/test/unit_test/command_queue/enqueue_copy_buffer_to_image_tests.cpp b/opencl/test/unit_test/command_queue/enqueue_copy_buffer_to_image_tests.cpp index 220ae62deb..8d706e0fc0 100644 --- a/opencl/test/unit_test/command_queue/enqueue_copy_buffer_to_image_tests.cpp +++ b/opencl/test/unit_test/command_queue/enqueue_copy_buffer_to_image_tests.cpp @@ -136,7 +136,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueCopyBufferToImageTest, WhenCopyingBufferToIma EXPECT_EQ(0u, cmd->getInterfaceDescriptorTotalLength() % alignmentTotalLength); // Generically validate this command - FamilyType::PARSE::template validateCommand(cmdList.begin(), itorMediaInterfaceDescriptorLoad); + FamilyType::Parse::template validateCommand(cmdList.begin(), itorMediaInterfaceDescriptorLoad); } HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueCopyBufferToImageTest, WhenCopyingBufferToImageThenInterfaceDescriptorDataIsCorrect) { diff --git a/opencl/test/unit_test/command_queue/enqueue_copy_image_tests.cpp b/opencl/test/unit_test/command_queue/enqueue_copy_image_tests.cpp index e10959f836..109e876cd0 100644 --- a/opencl/test/unit_test/command_queue/enqueue_copy_image_tests.cpp +++ b/opencl/test/unit_test/command_queue/enqueue_copy_image_tests.cpp @@ -148,7 +148,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueCopyImageTest, WhenCopyingImageThenMediaInter EXPECT_EQ(0u, cmd->getInterfaceDescriptorTotalLength() % alignmentTotalLength); // Generically validate this command - FamilyType::PARSE::template validateCommand(cmdList.begin(), itorMediaInterfaceDescriptorLoad); + FamilyType::Parse::template validateCommand(cmdList.begin(), itorMediaInterfaceDescriptorLoad); } HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueCopyImageTest, WhenCopyingImageThenInterfaceDescriptorDataIsCorrect) { diff --git a/opencl/test/unit_test/command_queue/enqueue_copy_image_to_buffer_tests.cpp b/opencl/test/unit_test/command_queue/enqueue_copy_image_to_buffer_tests.cpp index 9777f1acaf..11d67b4cad 100644 --- a/opencl/test/unit_test/command_queue/enqueue_copy_image_to_buffer_tests.cpp +++ b/opencl/test/unit_test/command_queue/enqueue_copy_image_to_buffer_tests.cpp @@ -136,7 +136,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueCopyImageToBufferTest, WhenCopyingImageToBuff EXPECT_EQ(0u, cmd->getInterfaceDescriptorTotalLength() % alignmentTotalLength); // Generically validate this command - FamilyType::PARSE::template validateCommand(cmdList.begin(), itorMediaInterfaceDescriptorLoad); + FamilyType::Parse::template validateCommand(cmdList.begin(), itorMediaInterfaceDescriptorLoad); } HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueCopyImageToBufferTest, WhenCopyingImageToBufferThenInterfaceDescriptorDataIsCorrect) { diff --git a/opencl/test/unit_test/command_queue/enqueue_fill_buffer_tests.cpp b/opencl/test/unit_test/command_queue/enqueue_fill_buffer_tests.cpp index a1424567a0..ee5dad1282 100644 --- a/opencl/test/unit_test/command_queue/enqueue_fill_buffer_tests.cpp +++ b/opencl/test/unit_test/command_queue/enqueue_fill_buffer_tests.cpp @@ -245,7 +245,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueFillBufferCmdTests, WhenFillingBufferThenMedi EXPECT_EQ(0u, cmd->getInterfaceDescriptorTotalLength() % alignmentTotalLength); // Generically validate this command - FamilyType::PARSE::template validateCommand(cmdList.begin(), itorMediaInterfaceDescriptorLoad); + FamilyType::Parse::template validateCommand(cmdList.begin(), itorMediaInterfaceDescriptorLoad); } HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueFillBufferCmdTests, WhenFillingBufferThenInterfaceDescriptorDataIsCorrect) { diff --git a/opencl/test/unit_test/command_queue/enqueue_fill_image_tests.cpp b/opencl/test/unit_test/command_queue/enqueue_fill_image_tests.cpp index c1da98f2d8..a252f9556c 100644 --- a/opencl/test/unit_test/command_queue/enqueue_fill_image_tests.cpp +++ b/opencl/test/unit_test/command_queue/enqueue_fill_image_tests.cpp @@ -159,7 +159,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueFillImageTest, WhenFillingImageThenMediaInter EXPECT_EQ(0u, cmd->getInterfaceDescriptorTotalLength() % alignmentTotalLength); // Generically validate this command - FamilyType::PARSE::template validateCommand(cmdList.begin(), itorMediaInterfaceDescriptorLoad); + FamilyType::Parse::template validateCommand(cmdList.begin(), itorMediaInterfaceDescriptorLoad); } HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueFillImageTest, WhenFillingImageThenInterfaceDescriptorDataIsCorrect) { diff --git a/opencl/test/unit_test/command_queue/enqueue_kernel_2_tests.cpp b/opencl/test/unit_test/command_queue/enqueue_kernel_2_tests.cpp index af0c926fd7..87527b779f 100644 --- a/opencl/test/unit_test/command_queue/enqueue_kernel_2_tests.cpp +++ b/opencl/test/unit_test/command_queue/enqueue_kernel_2_tests.cpp @@ -151,8 +151,8 @@ typedef EnqueueKernelTypeTest EnqueueWorkItemTests; typedef EnqueueKernelTypeTest EnqueueWorkItemTestsWithLimitedParamSet; HWCMDTEST_P(IGFX_GEN8_CORE, EnqueueWorkItemTests, WhenEnqueingKernelThenGpgpuWalkerIsProgrammedCorrectly) { - typedef typename FamilyType::PARSE PARSE; - typedef typename PARSE::GPGPU_WALKER GPGPU_WALKER; + typedef typename FamilyType::Parse Parse; + typedef typename Parse::GPGPU_WALKER GPGPU_WALKER; enqueueKernel(); @@ -204,9 +204,9 @@ HWCMDTEST_P(IGFX_GEN8_CORE, EnqueueWorkItemTestsWithLimitedParamSet, WhenEnqueue } HWCMDTEST_P(IGFX_GEN8_CORE, EnqueueWorkItemTestsWithLimitedParamSet, WhenEnqueingKernelThenMediaInterfaceDescriptorLoadIsCorrect) { - typedef typename FamilyType::PARSE PARSE; - typedef typename PARSE::MEDIA_INTERFACE_DESCRIPTOR_LOAD MEDIA_INTERFACE_DESCRIPTOR_LOAD; - typedef typename PARSE::INTERFACE_DESCRIPTOR_DATA INTERFACE_DESCRIPTOR_DATA; + typedef typename FamilyType::Parse Parse; + typedef typename Parse::MEDIA_INTERFACE_DESCRIPTOR_LOAD MEDIA_INTERFACE_DESCRIPTOR_LOAD; + typedef typename Parse::INTERFACE_DESCRIPTOR_DATA INTERFACE_DESCRIPTOR_DATA; enqueueKernel(); // All state should be programmed before walker @@ -228,14 +228,14 @@ HWCMDTEST_P(IGFX_GEN8_CORE, EnqueueWorkItemTestsWithLimitedParamSet, WhenEnquein EXPECT_EQ(0u, cmd->getInterfaceDescriptorTotalLength() % alignmentTotalLength); // Generically validate this command - PARSE::template validateCommand(cmdList.begin(), itorCmd); + Parse::template validateCommand(cmdList.begin(), itorCmd); } HWCMDTEST_P(IGFX_GEN8_CORE, EnqueueWorkItemTestsWithLimitedParamSet, WhenEnqueingKernelThenInterfaceDescriptorDataIsCorrect) { - typedef typename FamilyType::PARSE PARSE; - typedef typename PARSE::MEDIA_INTERFACE_DESCRIPTOR_LOAD MEDIA_INTERFACE_DESCRIPTOR_LOAD; - typedef typename PARSE::STATE_BASE_ADDRESS STATE_BASE_ADDRESS; - typedef typename PARSE::INTERFACE_DESCRIPTOR_DATA INTERFACE_DESCRIPTOR_DATA; + typedef typename FamilyType::Parse Parse; + typedef typename Parse::MEDIA_INTERFACE_DESCRIPTOR_LOAD MEDIA_INTERFACE_DESCRIPTOR_LOAD; + typedef typename Parse::STATE_BASE_ADDRESS STATE_BASE_ADDRESS; + typedef typename Parse::INTERFACE_DESCRIPTOR_DATA INTERFACE_DESCRIPTOR_DATA; enqueueKernel(); // Extract the MIDL command @@ -271,8 +271,8 @@ HWCMDTEST_P(IGFX_GEN8_CORE, EnqueueWorkItemTestsWithLimitedParamSet, WhenEnquein HWCMDTEST_P(IGFX_GEN8_CORE, EnqueueWorkItemTestsWithLimitedParamSet, givenDebugVariableToOverrideMOCSWhenStateBaseAddressIsBeingProgrammedThenItContainsDesiredIndex) { DebugManagerStateRestore restore; debugManager.flags.OverrideStatelessMocsIndex.set(1); - typedef typename FamilyType::PARSE PARSE; - typedef typename PARSE::STATE_BASE_ADDRESS STATE_BASE_ADDRESS; + typedef typename FamilyType::Parse Parse; + typedef typename Parse::STATE_BASE_ADDRESS STATE_BASE_ADDRESS; enqueueKernel(); // Extract the SBA command @@ -305,9 +305,9 @@ INSTANTIATE_TEST_CASE_P(EnqueueKernel, typedef EnqueueKernelTypeTest EnqueueScratchSpaceTests; HWCMDTEST_P(IGFX_GEN8_CORE, EnqueueScratchSpaceTests, GivenKernelRequiringScratchWhenItIsEnqueuedWithDifferentScratchSizesThenMediaVFEStateAndStateBaseAddressAreProperlyProgrammed) { - typedef typename FamilyType::PARSE PARSE; - typedef typename PARSE::MEDIA_VFE_STATE MEDIA_VFE_STATE; - typedef typename PARSE::STATE_BASE_ADDRESS STATE_BASE_ADDRESS; + typedef typename FamilyType::Parse Parse; + typedef typename Parse::MEDIA_VFE_STATE MEDIA_VFE_STATE; + typedef typename Parse::STATE_BASE_ADDRESS STATE_BASE_ADDRESS; auto &csr = pDevice->getUltCommandStreamReceiver(); @@ -365,7 +365,7 @@ HWCMDTEST_P(IGFX_GEN8_CORE, EnqueueScratchSpaceTests, GivenKernelRequiringScratc EXPECT_EQ(graphicsAllocation->getUnderlyingBufferSize(), allocationSize); // Generically validate this command - PARSE::template validateCommand(cmdList.begin(), itorCmd); + Parse::template validateCommand(cmdList.begin(), itorCmd); // skip if size to big 4MB, no point in stressing memory allocator. if (allocationSize > 4194304) { @@ -417,7 +417,7 @@ HWCMDTEST_P(IGFX_GEN8_CORE, EnqueueScratchSpaceTests, GivenKernelRequiringScratc EXPECT_NE(graphicsAllocation2, graphicsAllocation); // Generically validate this command - PARSE::template validateCommand(cmdList.begin(), itorCmd); + Parse::template validateCommand(cmdList.begin(), itorCmd); // Trigger SBA generation IndirectHeap dirtyDsh(nullptr); @@ -478,9 +478,9 @@ HWTEST_P(EnqueueKernelWithScratch, GivenKernelRequiringScratchWhenItIsEnqueuedWi HWCMDTEST_P(IGFX_GEN8_CORE, EnqueueKernelWithScratch, givenDeviceForcing32bitAllocationsWhenKernelWithScratchIsEnqueuedThenGeneralStateHeapBaseAddressIsCorrectlyProgrammedAndMediaVFEStateContainsProgramming) { - typedef typename FamilyType::PARSE PARSE; - typedef typename PARSE::MEDIA_VFE_STATE MEDIA_VFE_STATE; - typedef typename PARSE::STATE_BASE_ADDRESS STATE_BASE_ADDRESS; + typedef typename FamilyType::Parse Parse; + typedef typename Parse::MEDIA_VFE_STATE MEDIA_VFE_STATE; + typedef typename Parse::STATE_BASE_ADDRESS STATE_BASE_ADDRESS; if constexpr (is64bit) { CommandStreamReceiver *csr = &pDevice->getGpgpuCommandStreamReceiver(); @@ -537,7 +537,7 @@ TestParam testParamPrintf[] = { typedef EnqueueKernelTypeTest EnqueueKernelPrintfTest; HWTEST_P(EnqueueKernelPrintfTest, GivenKernelWithPrintfThenPatchCrossThreadData) { - typedef typename FamilyType::PARSE PARSE; + typedef typename FamilyType::Parse Parse; MockKernelWithInternals mockKernel(*pClDevice); mockKernel.crossThreadData[64] = 0; @@ -549,7 +549,7 @@ HWTEST_P(EnqueueKernelPrintfTest, GivenKernelWithPrintfThenPatchCrossThreadData) } HWTEST_P(EnqueueKernelPrintfTest, GivenKernelWithPrintfWhenBeingDispatchedThenL3CacheIsFlushed) { - typedef typename FamilyType::PARSE PARSE; + typedef typename FamilyType::Parse Parse; MockCommandQueueHw mockCmdQueue(context, pClDevice, nullptr); @@ -591,7 +591,7 @@ HWTEST_P(EnqueueKernelPrintfTest, GivenKernelWithPrintfWhenBeingDispatchedThenL3 } HWCMDTEST_P(IGFX_GEN8_CORE, EnqueueKernelPrintfTest, GivenKernelWithPrintfBlockedByEventWhenEventUnblockedThenL3CacheIsFlushed) { - typedef typename FamilyType::PARSE PARSE; + typedef typename FamilyType::Parse Parse; UserEvent userEvent(context); MockCommandQueueHw mockCommandQueue(context, pClDevice, nullptr); @@ -975,7 +975,7 @@ HWTEST_F(EnqueueAuxKernelTests, givenMultipleArgsWhenAuxTranslationIsRequiredThe auto cmdStream = cmdQ.commandStream; auto sizeUsed = cmdStream->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), sizeUsed)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), sizeUsed)); auto pipeControls = findAll(cmdList.begin(), cmdList.end()); diff --git a/opencl/test/unit_test/command_queue/enqueue_marker_tests.cpp b/opencl/test/unit_test/command_queue/enqueue_marker_tests.cpp index 0b7d9d94f9..8568f98de4 100644 --- a/opencl/test/unit_test/command_queue/enqueue_marker_tests.cpp +++ b/opencl/test/unit_test/command_queue/enqueue_marker_tests.cpp @@ -78,7 +78,7 @@ HWTEST_F(MarkerTest, GivenCsrAndCmdqWithDifferentTaskLevelsWhenEnqueingMarkerThe auto sizeUsed = pCS->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, pCmdBuffer, sizeUsed)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, pCmdBuffer, sizeUsed)); // If CSR > CQ then a PC isn't required. auto itorCmd = find(cmdList.begin(), cmdList.end()); diff --git a/opencl/test/unit_test/command_queue/enqueue_read_buffer_rect_tests.cpp b/opencl/test/unit_test/command_queue/enqueue_read_buffer_rect_tests.cpp index 15d366da10..f7ad6e9602 100644 --- a/opencl/test/unit_test/command_queue/enqueue_read_buffer_rect_tests.cpp +++ b/opencl/test/unit_test/command_queue/enqueue_read_buffer_rect_tests.cpp @@ -275,7 +275,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadBufferRectTest, WhenReadingBufferThenMedi EXPECT_EQ(0u, cmd->getInterfaceDescriptorTotalLength() % alignmentTotalLength); // Generically validate this command - FamilyType::PARSE::template validateCommand(cmdList.begin(), itorCmd); + FamilyType::Parse::template validateCommand(cmdList.begin(), itorCmd); } HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadBufferRectTest, WhenReadingBufferThenInterfaceDescriptorDataIsCorrect) { diff --git a/opencl/test/unit_test/command_queue/enqueue_read_buffer_tests.cpp b/opencl/test/unit_test/command_queue/enqueue_read_buffer_tests.cpp index fc150ac126..abe4a7c213 100644 --- a/opencl/test/unit_test/command_queue/enqueue_read_buffer_tests.cpp +++ b/opencl/test/unit_test/command_queue/enqueue_read_buffer_tests.cpp @@ -224,7 +224,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadBufferTypeTest, WhenReadingBufferThenMedi EXPECT_EQ(0u, cmd->getInterfaceDescriptorTotalLength() % alignmentTotalLength); // Generically validate this command - FamilyType::PARSE::template validateCommand(cmdList.begin(), itorCmd); + FamilyType::Parse::template validateCommand(cmdList.begin(), itorCmd); } HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadBufferTypeTest, WhenReadingBufferThenInterfaceDescriptorDataIsCorrect) { diff --git a/opencl/test/unit_test/command_queue/enqueue_read_image_tests.cpp b/opencl/test/unit_test/command_queue/enqueue_read_image_tests.cpp index dfb2a4531b..cfc26985ee 100644 --- a/opencl/test/unit_test/command_queue/enqueue_read_image_tests.cpp +++ b/opencl/test/unit_test/command_queue/enqueue_read_image_tests.cpp @@ -619,7 +619,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadImageTest, WhenReadingImageThenMediaInter EXPECT_EQ(0u, cmd->getInterfaceDescriptorTotalLength() % alignmentTotalLength); // Generically validate this command - FamilyType::PARSE::template validateCommand(cmdList.begin(), itorMediaInterfaceDescriptorLoad); + FamilyType::Parse::template validateCommand(cmdList.begin(), itorMediaInterfaceDescriptorLoad); } HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadImageTest, WhenReadingImageThenInterfaceDescriptorData) { diff --git a/opencl/test/unit_test/command_queue/enqueue_write_buffer_rect_tests.cpp b/opencl/test/unit_test/command_queue/enqueue_write_buffer_rect_tests.cpp index 7f8e4643d8..96c06fc2c0 100644 --- a/opencl/test/unit_test/command_queue/enqueue_write_buffer_rect_tests.cpp +++ b/opencl/test/unit_test/command_queue/enqueue_write_buffer_rect_tests.cpp @@ -250,7 +250,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteBufferRectTest, WhenWritingBufferThenMed EXPECT_EQ(0u, cmd->getInterfaceDescriptorTotalLength() % alignmentTotalLength); // Generically validate this command - FamilyType::PARSE::template validateCommand(cmdList.begin(), itorCmd); + FamilyType::Parse::template validateCommand(cmdList.begin(), itorCmd); } HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteBufferRectTest, WhenWritingBufferThenInterfaceDescriptorDataIsCorrect) { diff --git a/opencl/test/unit_test/command_queue/enqueue_write_buffer_tests.cpp b/opencl/test/unit_test/command_queue/enqueue_write_buffer_tests.cpp index 14e6c65a32..6cd057c318 100644 --- a/opencl/test/unit_test/command_queue/enqueue_write_buffer_tests.cpp +++ b/opencl/test/unit_test/command_queue/enqueue_write_buffer_tests.cpp @@ -222,7 +222,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteBufferTypeTest, WhenWritingBufferThenMed EXPECT_EQ(0u, cmd->getInterfaceDescriptorTotalLength() % alignmentTotalLength); // Generically validate this command - FamilyType::PARSE::template validateCommand(cmdList.begin(), itorCmd); + FamilyType::Parse::template validateCommand(cmdList.begin(), itorCmd); } HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteBufferTypeTest, WhenWritingBufferThenInterfaceDescriptorDataIsCorrect) { diff --git a/opencl/test/unit_test/command_queue/enqueue_write_image_tests.cpp b/opencl/test/unit_test/command_queue/enqueue_write_image_tests.cpp index 667fd47111..e1e4e73efd 100644 --- a/opencl/test/unit_test/command_queue/enqueue_write_image_tests.cpp +++ b/opencl/test/unit_test/command_queue/enqueue_write_image_tests.cpp @@ -161,7 +161,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteImageTest, WhenWritingImageThenMediaInte EXPECT_EQ(0u, cmd->getInterfaceDescriptorTotalLength() % alignmentTotalLength); // Generically validate this command - FamilyType::PARSE::template validateCommand(cmdList.begin(), itorMediaInterfaceDescriptorLoad); + FamilyType::Parse::template validateCommand(cmdList.begin(), itorMediaInterfaceDescriptorLoad); } HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteImageTest, WhenWritingImageThenInterfaceDescriptorDataIsCorrect) { diff --git a/opencl/test/unit_test/command_queue/finish_tests.cpp b/opencl/test/unit_test/command_queue/finish_tests.cpp index baacbad595..35543ae830 100644 --- a/opencl/test/unit_test/command_queue/finish_tests.cpp +++ b/opencl/test/unit_test/command_queue/finish_tests.cpp @@ -70,7 +70,7 @@ HWTEST_F(FinishTest, GivenCsGreaterThanCqWhenFinishIsCalledThenPipeControlIsNotA auto sizeUsed = pCS->getUsed(); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, pCmdBuffer, sizeUsed)); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, pCmdBuffer, sizeUsed)); auto itorCmd = find(cmdList.begin(), cmdList.end()); EXPECT_EQ(cmdList.end(), itorCmd); diff --git a/opencl/test/unit_test/command_stream/cmd_parse_tests.cpp b/opencl/test/unit_test/command_stream/cmd_parse_tests.cpp index 53acda38c2..45a62b0ae6 100644 --- a/opencl/test/unit_test/command_stream/cmd_parse_tests.cpp +++ b/opencl/test/unit_test/command_stream/cmd_parse_tests.cpp @@ -14,36 +14,36 @@ using namespace NEO; using CommandParse = Test; HWTEST_F(CommandParse, WhenGeneratingCommandBufferThenIsNotNull) { - typedef typename FamilyType::PARSE PARSE; + typedef typename FamilyType::Parse Parse; GenCmdList cmds; - EXPECT_FALSE(PARSE::parseCommandBuffer(cmds, nullptr, sizeof(void *))); + EXPECT_FALSE(Parse::parseCommandBuffer(cmds, nullptr, sizeof(void *))); } HWTEST_F(CommandParse, WhenGeneratingCommandBufferThenDoesNotContainGarbage) { - typedef typename FamilyType::PARSE PARSE; + typedef typename FamilyType::Parse Parse; uint32_t buffer[30] = {0xbaadf00d}; GenCmdList cmds; - EXPECT_FALSE(PARSE::parseCommandBuffer(cmds, buffer, sizeof(uint32_t))); + EXPECT_FALSE(Parse::parseCommandBuffer(cmds, buffer, sizeof(uint32_t))); } HWTEST_F(CommandParse, GivenGarbageWhenGeneratingCommandBufferThenLengthIsZero) { - typedef typename FamilyType::PARSE PARSE; + typedef typename FamilyType::Parse Parse; uint32_t buffer[30] = {0xbaadf00d}; - EXPECT_EQ(0u, PARSE::getCommandLength(buffer)); + EXPECT_EQ(0u, Parse::getCommandLength(buffer)); } HWTEST_F(CommandParse, WhenGeneratingCommandBufferThenBufferIsCorrect) { - typedef typename FamilyType::PARSE PARSE; + typedef typename FamilyType::Parse Parse; typedef typename FamilyType::DefaultWalkerType DefaultWalkerType; GenCmdList cmds; DefaultWalkerType buffer = FamilyType::cmdInitGpgpuWalker; - EXPECT_TRUE(PARSE::parseCommandBuffer(cmds, &buffer, 0)); - EXPECT_FALSE(PARSE::parseCommandBuffer(cmds, &buffer, 1)); - EXPECT_FALSE(PARSE::parseCommandBuffer(cmds, &buffer, 2)); - EXPECT_FALSE(PARSE::parseCommandBuffer(cmds, &buffer, 3)); - EXPECT_FALSE(PARSE::parseCommandBuffer(cmds, &buffer, 4)); - EXPECT_TRUE(PARSE::parseCommandBuffer(cmds, &buffer, sizeof(buffer))); + EXPECT_TRUE(Parse::parseCommandBuffer(cmds, &buffer, 0)); + EXPECT_FALSE(Parse::parseCommandBuffer(cmds, &buffer, 1)); + EXPECT_FALSE(Parse::parseCommandBuffer(cmds, &buffer, 2)); + EXPECT_FALSE(Parse::parseCommandBuffer(cmds, &buffer, 3)); + EXPECT_FALSE(Parse::parseCommandBuffer(cmds, &buffer, 4)); + EXPECT_TRUE(Parse::parseCommandBuffer(cmds, &buffer, sizeof(buffer))); } diff --git a/opencl/test/unit_test/command_stream/command_stream_receiver_flush_task_2_tests.cpp b/opencl/test/unit_test/command_stream/command_stream_receiver_flush_task_2_tests.cpp index 9af4763901..11cabd3b9c 100644 --- a/opencl/test/unit_test/command_stream/command_stream_receiver_flush_task_2_tests.cpp +++ b/opencl/test/unit_test/command_stream/command_stream_receiver_flush_task_2_tests.cpp @@ -701,9 +701,9 @@ HWTEST_F(CommandStreamReceiverFlushTaskTests, whenPrivateScratchIsRequiredForFir } HWCMDTEST_F(IGFX_GEN8_CORE, CommandStreamReceiverFlushTaskTests, givenTwoConsecutiveNdRangeKernelsThenStateBaseAddressIsProgrammedOnceAndScratchAddressInMediaVfeStateIsProgrammedTwiceBothWithCorrectAddress) { - typedef typename FamilyType::PARSE PARSE; - typedef typename PARSE::MEDIA_VFE_STATE MEDIA_VFE_STATE; - typedef typename PARSE::STATE_BASE_ADDRESS STATE_BASE_ADDRESS; + typedef typename FamilyType::Parse Parse; + typedef typename Parse::MEDIA_VFE_STATE MEDIA_VFE_STATE; + typedef typename Parse::STATE_BASE_ADDRESS STATE_BASE_ADDRESS; MockContext ctx(pClDevice); MockKernelWithInternals kernel(*pClDevice); @@ -815,9 +815,9 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandStreamReceiverFlushTaskTests, givenTwoConsecu HWCMDTEST_F(IGFX_GEN8_CORE, CommandStreamReceiverFlushTaskTests, givenNdRangeKernelAndReadBufferStateBaseAddressAndScratchAddressInMediaVfeStateThenProgrammingIsCorrect) { - typedef typename FamilyType::PARSE PARSE; - typedef typename PARSE::MEDIA_VFE_STATE MEDIA_VFE_STATE; - typedef typename PARSE::STATE_BASE_ADDRESS STATE_BASE_ADDRESS; + typedef typename FamilyType::Parse Parse; + typedef typename Parse::MEDIA_VFE_STATE MEDIA_VFE_STATE; + typedef typename Parse::STATE_BASE_ADDRESS STATE_BASE_ADDRESS; MockContext ctx(pClDevice); MockKernelWithInternals kernel(*pClDevice); diff --git a/opencl/test/unit_test/gen_common/gen_commands_common_validation.h b/opencl/test/unit_test/gen_common/gen_commands_common_validation.h index 5398df34ea..b1362418a5 100644 --- a/opencl/test/unit_test/gen_common/gen_commands_common_validation.h +++ b/opencl/test/unit_test/gen_common/gen_commands_common_validation.h @@ -58,13 +58,13 @@ void validateStateBaseAddress(uint64_t indirectObjectHeapBase, EXPECT_EQ(MemoryConstants::sizeOf4GBinPageEntities, cmd->getInstructionBufferSize()); // Generically validate this command - FamilyType::PARSE::template validateCommand(cmdList.begin(), itorCmd); + FamilyType::Parse::template validateCommand(cmdList.begin(), itorCmd); } template void validateL3Programming(GenCmdList &cmdList, GenCmdList::iterator &itorWalker) { - typedef typename FamilyType::PARSE PARSE; - typedef typename PARSE::MI_LOAD_REGISTER_IMM MI_LOAD_REGISTER_IMM; + typedef typename FamilyType::Parse Parse; + typedef typename Parse::MI_LOAD_REGISTER_IMM MI_LOAD_REGISTER_IMM; auto itorCmd = findMmio(cmdList.begin(), itorWalker, L3CNTLRegisterOffset::registerOffset); if (UnitTestHelper::isL3ConfigProgrammable()) { @@ -104,6 +104,6 @@ void validateMediaVFEState(const HardwareInfo *hwInfo, void *cmdMediaVfeState, G EXPECT_EQ(0u, cmd->getStackSize()); // Generically validate this command - FamilyType::PARSE::template validateCommand(cmdList.begin(), itorMediaVfeState); + FamilyType::Parse::template validateCommand(cmdList.begin(), itorMediaVfeState); } } // namespace NEO diff --git a/shared/source/gen11/hw_cmds_base.h b/shared/source/gen11/hw_cmds_base.h index 2072ab3910..d6d9e47c25 100644 --- a/shared/source/gen11/hw_cmds_base.h +++ b/shared/source/gen11/hw_cmds_base.h @@ -90,7 +90,7 @@ struct Gen11 { static_assert(sizeof(DataPortBindlessSurfaceExtendedMessageDescriptor) == sizeof(DataPortBindlessSurfaceExtendedMessageDescriptor::packed), ""); }; struct Gen11Family : public Gen11 { - using PARSE = CmdParse; + using Parse = CmdParse; using GfxFamily = Gen11Family; using DefaultWalkerType = GPGPU_WALKER; using FrontEndStateCommand = MEDIA_VFE_STATE; diff --git a/shared/source/gen12lp/hw_cmds_base.h b/shared/source/gen12lp/hw_cmds_base.h index b843fdda0a..19e2be074d 100644 --- a/shared/source/gen12lp/hw_cmds_base.h +++ b/shared/source/gen12lp/hw_cmds_base.h @@ -89,7 +89,7 @@ struct Gen12Lp { static_assert(sizeof(DataPortBindlessSurfaceExtendedMessageDescriptor) == sizeof(DataPortBindlessSurfaceExtendedMessageDescriptor::packed), ""); }; struct Gen12LpFamily : public Gen12Lp { - using PARSE = CmdParse; + using Parse = CmdParse; using GfxFamily = Gen12LpFamily; using DefaultWalkerType = GPGPU_WALKER; using FrontEndStateCommand = MEDIA_VFE_STATE; diff --git a/shared/source/gen8/hw_cmds_base.h b/shared/source/gen8/hw_cmds_base.h index dc7250f5c0..e1e9f339c7 100644 --- a/shared/source/gen8/hw_cmds_base.h +++ b/shared/source/gen8/hw_cmds_base.h @@ -91,7 +91,7 @@ struct Gen8 { static_assert(sizeof(DataPortBindlessSurfaceExtendedMessageDescriptor) == sizeof(DataPortBindlessSurfaceExtendedMessageDescriptor::packed), ""); }; struct Gen8Family : public Gen8 { - using PARSE = CmdParse; + using Parse = CmdParse; using GfxFamily = Gen8Family; using DefaultWalkerType = GPGPU_WALKER; using FrontEndStateCommand = MEDIA_VFE_STATE; diff --git a/shared/source/gen9/hw_cmds_base.h b/shared/source/gen9/hw_cmds_base.h index c410cb7475..ff4223c57d 100644 --- a/shared/source/gen9/hw_cmds_base.h +++ b/shared/source/gen9/hw_cmds_base.h @@ -91,7 +91,7 @@ struct Gen9 { }; struct Gen9Family : public Gen9 { - using PARSE = CmdParse; + using Parse = CmdParse; using GfxFamily = Gen9Family; using DefaultWalkerType = GPGPU_WALKER; using FrontEndStateCommand = MEDIA_VFE_STATE; diff --git a/shared/source/xe_hpc_core/hw_cmds_xe_hpc_core_base.h b/shared/source/xe_hpc_core/hw_cmds_xe_hpc_core_base.h index c211dbdc85..9d064c2053 100644 --- a/shared/source/xe_hpc_core/hw_cmds_xe_hpc_core_base.h +++ b/shared/source/xe_hpc_core/hw_cmds_xe_hpc_core_base.h @@ -79,7 +79,7 @@ struct XeHpcCore { }; struct XeHpcCoreFamily : public XeHpcCore { - using PARSE = CmdParse; + using Parse = CmdParse; using GfxFamily = XeHpcCoreFamily; using DefaultWalkerType = COMPUTE_WALKER; using FrontEndStateCommand = CFE_STATE; diff --git a/shared/source/xe_hpg_core/hw_cmds_xe_hpg_core_base.h b/shared/source/xe_hpg_core/hw_cmds_xe_hpg_core_base.h index 873eeab1be..45344019c4 100644 --- a/shared/source/xe_hpg_core/hw_cmds_xe_hpg_core_base.h +++ b/shared/source/xe_hpg_core/hw_cmds_xe_hpg_core_base.h @@ -97,7 +97,7 @@ struct XeHpgCore { }; struct XeHpgCoreFamily : public XeHpgCore { - using PARSE = CmdParse; + using Parse = CmdParse; using GfxFamily = XeHpgCoreFamily; using DefaultWalkerType = COMPUTE_WALKER; using FrontEndStateCommand = CFE_STATE; diff --git a/shared/test/common/cmd_parse/hw_parse.h b/shared/test/common/cmd_parse/hw_parse.h index 1a402d037e..d9d04b4094 100644 --- a/shared/test/common/cmd_parse/hw_parse.h +++ b/shared/test/common/cmd_parse/hw_parse.h @@ -71,7 +71,7 @@ struct HardwareParse { void parseCommands(NEO::LinearStream &commandStream, size_t startOffset = 0) { ASSERT_LE(startOffset, commandStream.getUsed()); auto sizeToParse = commandStream.getUsed() - startOffset; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandStream.getCpuBase(), startOffset), sizeToParse)); @@ -193,7 +193,7 @@ struct HardwareParse { template static const char *getCommandName(void *cmd) { - return FamilyType::PARSE::getCommandName(cmd); + return FamilyType::Parse::getCommandName(cmd); } // The starting point of parsing commandBuffers. This is important diff --git a/shared/test/unit_test/command_stream/command_stream_receiver_tests.cpp b/shared/test/unit_test/command_stream/command_stream_receiver_tests.cpp index 0106c52de0..f417ff88a8 100644 --- a/shared/test/unit_test/command_stream/command_stream_receiver_tests.cpp +++ b/shared/test/unit_test/command_stream/command_stream_receiver_tests.cpp @@ -3419,7 +3419,7 @@ HWTEST2_F(CommandStreamReceiverHwTest, commandStreamReceiver.dispatchRayTracingStateCommand(cmdStream, *pDevice); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, cmdStream.getCpuBase(), cmdStream.getUsed())); @@ -4509,7 +4509,7 @@ HWTEST_F(CommandStreamReceiverHwTest, givenDcFlushRequiredWhenProgramStallingPos ultCsr.programStallingPostSyncCommandsForBarrier(commandStream, *tagNode, dcFlushRequired); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, commandStream.getCpuBase(), commandStream.getUsed())); @@ -4540,7 +4540,7 @@ HWTEST_F(CommandStreamReceiverHwTest, givenDcFlushRequiredButNoDcFlushSupportWhe ultCsr.programStallingPostSyncCommandsForBarrier(commandStream, *tagNode, dcFlushRequired); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, commandStream.getCpuBase(), commandStream.getUsed())); @@ -4571,7 +4571,7 @@ HWTEST_F(CommandStreamReceiverHwTest, givenDcFlushRequiredFalseWhenProgramStalli ultCsr.programStallingPostSyncCommandsForBarrier(commandStream, *tagNode, dcFlushRequired); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, commandStream.getCpuBase(), commandStream.getUsed())); @@ -4652,7 +4652,7 @@ HWTEST_F(CommandStreamReceiverHwTest, GivenDirtyFlagForContextInBindlessHelperWh ASSERT_GT(usedSpaceAfter, usedSpaceBefore); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(commandStreamReceiver.commandStream.getCpuBase(), 0), usedSpaceAfter)); auto pipeControls = findAll(cmdList.begin(), cmdList.end()); @@ -4974,7 +4974,7 @@ HWTEST2_F(CommandStreamReceiverHwTest, givenSingleTileWhenProgrammingPostSyncBar ASSERT_EQ(estimatedCmdSize, sizeUsed); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, commandStream.getCpuBase(), sizeUsed)); diff --git a/shared/test/unit_test/debugger/test_l0_debugger.cpp b/shared/test/unit_test/debugger/test_l0_debugger.cpp index 25c12c2e3e..826421e6ae 100644 --- a/shared/test/unit_test/debugger/test_l0_debugger.cpp +++ b/shared/test/unit_test/debugger/test_l0_debugger.cpp @@ -309,7 +309,7 @@ HWTEST_F(PerContextAddressSpaceL0DebuggerTest, givenCanonizedGpuVasWhenProgrammi debugger->captureStateBaseAddress(cmdStream, sbaAddresses, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream.getCpuBase(), cmdStream.getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream.getCpuBase(), cmdStream.getUsed())); EXPECT_EQ(6 * sizeof(MI_STORE_DATA_IMM), cmdStream.getUsed()); @@ -398,7 +398,7 @@ HWTEST_F(PerContextAddressSpaceL0DebuggerTest, givenNonZeroGpuVasWhenProgramming debugger->captureStateBaseAddress(cmdStream, sbaAddresses, false); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream.getCpuBase(), cmdStream.getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream.getCpuBase(), cmdStream.getUsed())); EXPECT_EQ(6 * sizeof(MI_STORE_DATA_IMM), cmdStream.getUsed()); diff --git a/shared/test/unit_test/debugger/test_l0_debugger_single_address_space.cpp b/shared/test/unit_test/debugger/test_l0_debugger_single_address_space.cpp index de8cb7e852..3a15d92c4f 100644 --- a/shared/test/unit_test/debugger/test_l0_debugger_single_address_space.cpp +++ b/shared/test/unit_test/debugger/test_l0_debugger_single_address_space.cpp @@ -146,7 +146,7 @@ HWTEST2_P(L0DebuggerBBlevelParameterizedTest, GivenNonZeroSbaAddressesWhenProgra debugger->programSbaTrackingCommandsSingleAddressSpace(cmdStream, sbaAddresses, GetParam()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream.getCpuBase(), cmdStream.getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream.getCpuBase(), cmdStream.getUsed())); size_t sizeExpected = EncodeMiArbCheck::getCommandSizeWithWa(EncodeDummyBlitWaArgs{}) + sizeof(MI_BATCH_BUFFER_START); @@ -258,7 +258,7 @@ HWTEST2_P(L0DebuggerBBlevelParameterizedTest, GivenOneNonZeroSbaAddressesWhenPro debugger->captureStateBaseAddress(cmdStream, sbaAddresses, GetParam()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream.getCpuBase(), cmdStream.getUsed())); + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream.getCpuBase(), cmdStream.getUsed())); size_t sizeExpected = EncodeMiArbCheck::getCommandSizeWithWa(EncodeDummyBlitWaArgs{}) + sizeof(MI_BATCH_BUFFER_START); diff --git a/shared/test/unit_test/device_binary_format/zebin_decoder_tests.cpp b/shared/test/unit_test/device_binary_format/zebin_decoder_tests.cpp index 65bd09d132..a191ca030e 100644 --- a/shared/test/unit_test/device_binary_format/zebin_decoder_tests.cpp +++ b/shared/test/unit_test/device_binary_format/zebin_decoder_tests.cpp @@ -3421,7 +3421,7 @@ kernels: addrspace: global access_type: readwrite kernels_misc_info: - // DO NOT PARSE + // DO NOT Parse // ANYTHING IN THIS SECTION // OTHERWISE, YOU WILL GET PARSING ERROR ... diff --git a/shared/test/unit_test/helpers/blit_commands_helper_tests.cpp b/shared/test/unit_test/helpers/blit_commands_helper_tests.cpp index 5bc5fcf465..fd8b490416 100644 --- a/shared/test/unit_test/helpers/blit_commands_helper_tests.cpp +++ b/shared/test/unit_test/helpers/blit_commands_helper_tests.cpp @@ -259,7 +259,7 @@ HWTEST_F(BlitTests, givenMemoryWhenFillPatternWithBlitThenCommandIsProgrammed) { EncodeDummyBlitWaArgs waArgs{false, pDevice->getExecutionEnvironment()->rootDeviceEnvironments[pDevice->getRootDeviceIndex()].get()}; BlitCommandsHelper::dispatchBlitMemoryColorFill(&mockAllocation, 0, pattern, sizeof(uint32_t), stream, mockAllocation.getUnderlyingBufferSize(), waArgs); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(stream.getCpuBase(), 0), stream.getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -278,7 +278,7 @@ HWTEST_F(BlitTests, givenMemorySizeBiggerThanMaxWidthButLessThanTwiceMaxWidthWhe EncodeDummyBlitWaArgs waArgs{false, pDevice->getExecutionEnvironment()->rootDeviceEnvironments[pDevice->getRootDeviceIndex()].get()}; BlitCommandsHelper::dispatchBlitMemoryColorFill(&mockAllocation, 0, pattern, sizeof(uint32_t), stream, mockAllocation.getUnderlyingBufferSize(), waArgs); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(stream.getCpuBase(), 0), stream.getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -300,7 +300,7 @@ HWTEST_F(BlitTests, givenMemoryPointerOffsetVerifyCorrectDestinationBaseAddress) EncodeDummyBlitWaArgs waArgs{false, pDevice->getExecutionEnvironment()->rootDeviceEnvironments[pDevice->getRootDeviceIndex()].get()}; BlitCommandsHelper::dispatchBlitMemoryColorFill(&mockAllocation, 0x234, pattern, sizeof(uint32_t), stream, mockAllocation.getUnderlyingBufferSize(), waArgs); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(stream.getCpuBase(), 0), stream.getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -328,7 +328,7 @@ HWTEST_F(BlitTests, givenMemorySizeTwiceBiggerThanMaxWidthWhenFillPatternWithBli EncodeDummyBlitWaArgs waArgs{false, pDevice->getExecutionEnvironment()->rootDeviceEnvironments[pDevice->getRootDeviceIndex()].get()}; BlitCommandsHelper::dispatchBlitMemoryColorFill(&mockAllocation, 0, pattern, sizeof(uint32_t), stream, mockAllocation.getUnderlyingBufferSize(), waArgs); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(stream.getCpuBase(), 0), stream.getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -357,7 +357,7 @@ HWTEST_F(BlitTests, givenMemorySizeIsLessThanTwicenMaxWidthWhenFillPatternWithBl EncodeDummyBlitWaArgs waArgs{false, pDevice->getExecutionEnvironment()->rootDeviceEnvironments[pDevice->getRootDeviceIndex()].get()}; BlitCommandsHelper::dispatchBlitMemoryColorFill(&mockAllocation, 0, pattern, sizeof(uint32_t), stream, mockAllocation.getUnderlyingBufferSize(), waArgs); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(stream.getCpuBase(), 0), stream.getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -400,7 +400,7 @@ HWTEST2_F(BlitTests, givenMemoryWhenFillPatternSizeIs4BytesThen32BitMaskISSetCor EncodeDummyBlitWaArgs waArgs{false, pDevice->getExecutionEnvironment()->rootDeviceEnvironments[pDevice->getRootDeviceIndex()].get()}; BlitCommandsHelper::dispatchBlitMemoryColorFill(&mockAllocation, 0, &pattern, sizeof(uint32_t), stream, mockAllocation.getUnderlyingBufferSize(), waArgs); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(stream.getCpuBase(), 0), stream.getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -519,7 +519,7 @@ HWTEST2_F(BlitTests, givenMemoryAndImageWhenDispatchCopyImageCallThenCommandAdde EncodeDummyBlitWaArgs waArgs{false, &(pDevice->getRootDeviceEnvironmentRef())}; NEO::BlitCommandsHelper::dispatchBlitCommandsForImageRegion(blitProperties, stream, waArgs); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(stream.getCpuBase(), 0), stream.getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); diff --git a/shared/test/unit_test/helpers/blit_commands_helper_tests.inl b/shared/test/unit_test/helpers/blit_commands_helper_tests.inl index bd9e221b4f..63fd25a697 100644 --- a/shared/test/unit_test/helpers/blit_commands_helper_tests.inl +++ b/shared/test/unit_test/helpers/blit_commands_helper_tests.inl @@ -55,7 +55,7 @@ class GivenLinearStreamWhenCallDispatchBlitMemoryColorFillThenCorrectDepthIsProg EncodeDummyBlitWaArgs waArgs{false, &(device->getRootDeviceEnvironmentRef())}; BlitCommandsHelper::dispatchBlitMemoryColorFill(&mockAllocation, 0, patternToCommand, patternSize, stream, mockAllocation.getUnderlyingBufferSize(), waArgs); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(stream.getCpuBase(), 0), stream.getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); diff --git a/shared/test/unit_test/helpers/gfx_core_helper_tests_dg2_and_later.cpp b/shared/test/unit_test/helpers/gfx_core_helper_tests_dg2_and_later.cpp index ccf87c8268..cfb8162ee7 100644 --- a/shared/test/unit_test/helpers/gfx_core_helper_tests_dg2_and_later.cpp +++ b/shared/test/unit_test/helpers/gfx_core_helper_tests_dg2_and_later.cpp @@ -110,7 +110,7 @@ HWTEST2_F(PipeControlHelperTestsDg2AndLater, WhenAddingPipeControlWAThenCorrectC } GenCmdList cmdList; - FamilyType::PARSE::parseCommandBuffer(cmdList, stream.getCpuBase(), stream.getUsed()); + FamilyType::Parse::parseCommandBuffer(cmdList, stream.getCpuBase(), stream.getUsed()); EXPECT_EQ(requiresMemorySynchronization ? 2u : 1u, cmdList.size()); PIPE_CONTROL expectedPipeControl = FamilyType::cmdInitPipeControl; diff --git a/shared/test/unit_test/helpers/test_blit_commands_helper_pvc_and_later.cpp b/shared/test/unit_test/helpers/test_blit_commands_helper_pvc_and_later.cpp index f122a2bcdc..92c0c77750 100644 --- a/shared/test/unit_test/helpers/test_blit_commands_helper_pvc_and_later.cpp +++ b/shared/test/unit_test/helpers/test_blit_commands_helper_pvc_and_later.cpp @@ -28,7 +28,7 @@ HWTEST2_F(BlitTests, givenOneBytePatternWhenFillPatternWithBlitThenCommandIsProg EncodeDummyBlitWaArgs waArgs{false, pDevice->getExecutionEnvironment()->rootDeviceEnvironments[pDevice->getRootDeviceIndex()].get()}; BlitCommandsHelper::dispatchBlitMemoryColorFill(&mockAllocation, 0, &pattern, sizeof(uint8_t), stream, mockAllocation.getUnderlyingBufferSize(), waArgs); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(stream.getCpuBase(), 0), stream.getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -45,7 +45,7 @@ HWTEST2_F(BlitTests, givenDeviceWithoutDefaultGmmWhenAppendBlitCommandsForVillBu EncodeDummyBlitWaArgs waArgs{false, pDevice->getExecutionEnvironment()->rootDeviceEnvironments[pDevice->getRootDeviceIndex()].get()}; BlitCommandsHelper::dispatchBlitMemoryColorFill(&mockAllocation, 0, &pattern, sizeof(uint8_t), stream, mockAllocation.getUnderlyingBufferSize(), waArgs); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(stream.getCpuBase(), 0), stream.getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -70,7 +70,7 @@ HWTEST2_F(BlitTests, givenGmmWithDisabledCompresionWhenAppendBlitCommandsForVill EncodeDummyBlitWaArgs waArgs{false, pDevice->getExecutionEnvironment()->rootDeviceEnvironments[pDevice->getRootDeviceIndex()].get()}; BlitCommandsHelper::dispatchBlitMemoryColorFill(&mockAllocation, 0, &pattern, sizeof(uint8_t), stream, mockAllocation.getUnderlyingBufferSize(), waArgs); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(stream.getCpuBase(), 0), stream.getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -96,7 +96,7 @@ HWTEST2_F(BlitTests, givenGmmWithEnabledCompresionWhenAppendBlitCommandsForVillB EncodeDummyBlitWaArgs waArgs{false, const_cast(rootDeviceEnvironment.get())}; BlitCommandsHelper::dispatchBlitMemoryColorFill(&mockAllocation, 0, &pattern, sizeof(uint8_t), stream, mockAllocation.getUnderlyingBufferSize(), waArgs); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(stream.getCpuBase(), 0), stream.getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -125,7 +125,7 @@ HWTEST2_F(BlitTests, givenOverridedMocksValueWhenAppendBlitCommandsForVillBuffer EncodeDummyBlitWaArgs waArgs{false, pDevice->getExecutionEnvironment()->rootDeviceEnvironments[pDevice->getRootDeviceIndex()].get()}; BlitCommandsHelper::dispatchBlitMemoryColorFill(&mockAllocation, 0, &pattern, sizeof(uint8_t), stream, mockAllocation.getUnderlyingBufferSize(), waArgs); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(stream.getCpuBase(), 0), stream.getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -149,7 +149,7 @@ HWTEST2_F(BlitTests, givenEnableStatelessCompressionWithUnifiedMemoryAndSystemMe EncodeDummyBlitWaArgs waArgs{false, pDevice->getExecutionEnvironment()->rootDeviceEnvironments[pDevice->getRootDeviceIndex()].get()}; BlitCommandsHelper::dispatchBlitMemoryColorFill(&mockAllocation, 0, &pattern, sizeof(uint8_t), stream, mockAllocation.getUnderlyingBufferSize(), waArgs); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(stream.getCpuBase(), 0), stream.getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -181,7 +181,7 @@ HWTEST2_F(BlitTests, givenEnableStatelessCompressionWithUnifiedMemoryAndLocalMem EncodeDummyBlitWaArgs waArgs{false, pDevice->getExecutionEnvironment()->rootDeviceEnvironments[pDevice->getRootDeviceIndex()].get()}; BlitCommandsHelper::dispatchBlitMemoryColorFill(&mockAllocation, 0, &pattern, sizeof(uint8_t), stream, mockAllocation.getUnderlyingBufferSize(), waArgs); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(stream.getCpuBase(), 0), stream.getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -203,7 +203,7 @@ HWTEST2_F(BlitTests, givenMemorySizeBiggerThanMaxWidthButLessThanTwiceMaxWidthWh EncodeDummyBlitWaArgs waArgs{false, pDevice->getExecutionEnvironment()->rootDeviceEnvironments[pDevice->getRootDeviceIndex()].get()}; BlitCommandsHelper::dispatchBlitMemoryColorFill(&mockAllocation, 0, &pattern, sizeof(uint8_t), stream, mockAllocation.getUnderlyingBufferSize(), waArgs); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(stream.getCpuBase(), 0), stream.getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -224,7 +224,7 @@ HWTEST2_F(BlitTests, givenMemorySizeTwiceBiggerThanMaxWidthWhenFillPatternWithBl EncodeDummyBlitWaArgs waArgs{false, pDevice->getExecutionEnvironment()->rootDeviceEnvironments[pDevice->getRootDeviceIndex()].get()}; BlitCommandsHelper::dispatchBlitMemoryColorFill(&mockAllocation, 0, &pattern, sizeof(uint8_t), stream, mockAllocation.getUnderlyingBufferSize(), waArgs); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(stream.getCpuBase(), 0), stream.getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -310,7 +310,7 @@ HWTEST2_F(BlitTests, givenMemoryAndImageWhenDispatchCopyImageCallThenCommandAdde EncodeDummyBlitWaArgs waArgs{false, &(pDevice->getRootDeviceEnvironmentRef())}; NEO::BlitCommandsHelper::dispatchBlitCommandsForImageRegion(blitProperties, stream, waArgs); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(stream.getCpuBase(), 0), stream.getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); diff --git a/shared/test/unit_test/helpers/test_blit_commands_helper_xehp_and_later.cpp b/shared/test/unit_test/helpers/test_blit_commands_helper_xehp_and_later.cpp index 6285b66891..9448321c11 100644 --- a/shared/test/unit_test/helpers/test_blit_commands_helper_xehp_and_later.cpp +++ b/shared/test/unit_test/helpers/test_blit_commands_helper_xehp_and_later.cpp @@ -552,7 +552,7 @@ HWTEST2_F(BlitTests, givenDispatchDummyBlitWhenDummyBlitWaRequiredThenColorBltPr EXPECT_EQ(expectedSize, stream.getUsed()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(stream.getCpuBase(), 0), stream.getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor); @@ -602,7 +602,7 @@ HWTEST2_F(BlitTests, givenDispatchDummyBlitWhenForceDummyBlitWaSetThenColorBltPr EXPECT_EQ(expectedSize, stream.getUsed()); GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( + ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer( cmdList, ptrOffset(stream.getCpuBase(), 0), stream.getUsed())); auto itor = find(cmdList.begin(), cmdList.end()); EXPECT_NE(cmdList.end(), itor);