@@ -804,5 +804,32 @@ HWTEST_F(CommandListCreate, givenAsyncCmdQueueAndCopyOnlyImmediateCommandListWhe
804804 EXPECT_EQ (used, commandContainer.getCommandStream ()->getUsed ());
805805}
806806
807+ HWTEST2_F (CommandListCreate, givenIndirectAccessFlagsAreChangedWhenResetingCommandListThenExpectAllFlagsSetToDefault, TestPlatforms) {
808+ using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
809+
810+ auto commandList = std::make_unique<::L0::ult::CommandListCoreFamily<gfxCoreFamily>>();
811+ ASSERT_NE (nullptr , commandList);
812+ ze_result_t returnValue = commandList->initialize (device, NEO::EngineGroupType::Compute, 0u );
813+ EXPECT_EQ (ZE_RESULT_SUCCESS, returnValue);
814+
815+ EXPECT_FALSE (commandList->indirectAllocationsAllowed );
816+ EXPECT_FALSE (commandList->unifiedMemoryControls .indirectHostAllocationsAllowed );
817+ EXPECT_FALSE (commandList->unifiedMemoryControls .indirectSharedAllocationsAllowed );
818+ EXPECT_FALSE (commandList->unifiedMemoryControls .indirectDeviceAllocationsAllowed );
819+
820+ commandList->indirectAllocationsAllowed = true ;
821+ commandList->unifiedMemoryControls .indirectHostAllocationsAllowed = true ;
822+ commandList->unifiedMemoryControls .indirectSharedAllocationsAllowed = true ;
823+ commandList->unifiedMemoryControls .indirectDeviceAllocationsAllowed = true ;
824+
825+ returnValue = commandList->reset ();
826+ EXPECT_EQ (ZE_RESULT_SUCCESS, returnValue);
827+
828+ EXPECT_FALSE (commandList->indirectAllocationsAllowed );
829+ EXPECT_FALSE (commandList->unifiedMemoryControls .indirectHostAllocationsAllowed );
830+ EXPECT_FALSE (commandList->unifiedMemoryControls .indirectSharedAllocationsAllowed );
831+ EXPECT_FALSE (commandList->unifiedMemoryControls .indirectDeviceAllocationsAllowed );
832+ }
833+
807834} // namespace ult
808835} // namespace L0
0 commit comments