diff --git a/level_zero/core/source/cmdlist/cmdlist_hw.inl b/level_zero/core/source/cmdlist/cmdlist_hw.inl index 67f12fdebb..9af9cc90cc 100644 --- a/level_zero/core/source/cmdlist/cmdlist_hw.inl +++ b/level_zero/core/source/cmdlist/cmdlist_hw.inl @@ -1643,9 +1643,6 @@ void CommandListCoreFamily::programStateBaseAddress(NEO::CommandC NEO::PipeControlArgs args(true); args.hdcPipelineFlush = true; args.textureCacheInvalidationEnable = true; - if (genericMediaStateClearRequired) { - args.genericMediaStateClear = true; - } NEO::MemorySynchronizationCommands::addPipeControl(*commandContainer.getCommandStream(), args); STATE_BASE_ADDRESS sba; 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 84a8fc6540..967f46f55e 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 @@ -334,43 +334,6 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandListCreate, whenCommandListIsCreatedThenPCAnd EXPECT_EQ(gmmHelper->getMOCS(GMM_RESOURCE_USAGE_OCL_BUFFER), cmdSba->getStatelessDataPortAccessMemoryObjectControlState()); } -HWTEST_F(CommandListCreate, givenCommandListWhenCreatedThenGenericMediaStateClearBitIsNotSetInThePipeControlCommand) { - using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL; - - ze_result_t returnValue; - std::unique_ptr commandList(CommandList::create(productFamily, device, NEO::EngineGroupType::RenderCompute, returnValue)); - auto &commandContainer = commandList->commandContainer; - - GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( - cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); - auto itor = find(cmdList.begin(), cmdList.end()); - - ASSERT_NE(cmdList.end(), itor); - - auto cmdPc = genCmdCast(*itor); - EXPECT_FALSE(cmdPc->getGenericMediaStateClear()); -} - -HWTEST_F(CommandListCreate, givenCommandListWhenResetThenGenericMediaStateClearBitIsSetInThePipeControlCommand) { - using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL; - - ze_result_t returnValue; - std::unique_ptr commandList(CommandList::create(productFamily, device, NEO::EngineGroupType::RenderCompute, returnValue)); - auto &commandContainer = commandList->commandContainer; - commandList->reset(); - - GenCmdList cmdList; - ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer( - cmdList, ptrOffset(commandContainer.getCommandStream()->getCpuBase(), 0), commandContainer.getCommandStream()->getUsed())); - auto itor = find(cmdList.begin(), cmdList.end()); - - ASSERT_NE(cmdList.end(), itor); - - auto cmdPc = genCmdCast(*itor); - EXPECT_TRUE(cmdPc->getGenericMediaStateClear()); -} - HWTEST_F(CommandListCreate, givenCommandListWithCopyOnlyWhenCreatedThenStateBaseAddressCmdIsNotProgrammed) { using STATE_BASE_ADDRESS = typename FamilyType::STATE_BASE_ADDRESS;