@@ -1543,13 +1543,12 @@ HWTEST_F(KernelResidencyTest, givenKernelWhenclSetKernelExecInfoWithUnifiedMemor
15431543 EXPECT_FALSE (mockKernel.mockKernel ->unifiedMemoryControls .indirectSharedAllocationsAllowed );
15441544}
15451545
1546- HWTEST_F (KernelResidencyTest, givenKernelWithNoKernelArgLoadNorKernelArgStoreNorKernelArgAtomicNorHasIndirectStatelessAccessThenKernelHasIndirectAccessIsSetToFalse ) {
1546+ HWTEST_F (KernelResidencyTest, givenKernelWithNoKernelArgLoadNorKernelArgStoreNorKernelArgAtomicThenKernelHasIndirectAccessIsSetToFalse ) {
15471547 auto pKernelInfo = std::make_unique<KernelInfo>();
15481548 pKernelInfo->kernelDescriptor .kernelAttributes .simdSize = 1 ;
15491549 pKernelInfo->kernelDescriptor .kernelAttributes .hasNonKernelArgLoad = false ;
15501550 pKernelInfo->kernelDescriptor .kernelAttributes .hasNonKernelArgStore = false ;
15511551 pKernelInfo->kernelDescriptor .kernelAttributes .hasNonKernelArgAtomic = false ;
1552- pKernelInfo->hasIndirectStatelessAccess = false ;
15531552
15541553 auto &commandStreamReceiver = pDevice->getUltCommandStreamReceiver <FamilyType>();
15551554 commandStreamReceiver.storeMakeResidentAllocations = true ;
@@ -1575,7 +1574,6 @@ HWTEST_F(KernelResidencyTest, givenKernelWithNoKernelArgLoadThenKernelHasIndirec
15751574 pKernelInfo->kernelDescriptor .kernelAttributes .hasNonKernelArgLoad = true ;
15761575 pKernelInfo->kernelDescriptor .kernelAttributes .hasNonKernelArgStore = false ;
15771576 pKernelInfo->kernelDescriptor .kernelAttributes .hasNonKernelArgAtomic = false ;
1578- pKernelInfo->hasIndirectStatelessAccess = false ;
15791577
15801578 auto &commandStreamReceiver = pDevice->getUltCommandStreamReceiver <FamilyType>();
15811579 commandStreamReceiver.storeMakeResidentAllocations = true ;
@@ -1601,7 +1599,6 @@ HWTEST_F(KernelResidencyTest, givenKernelWithNoKernelArgStoreThenKernelHasIndire
16011599 pKernelInfo->kernelDescriptor .kernelAttributes .hasNonKernelArgLoad = false ;
16021600 pKernelInfo->kernelDescriptor .kernelAttributes .hasNonKernelArgStore = true ;
16031601 pKernelInfo->kernelDescriptor .kernelAttributes .hasNonKernelArgAtomic = false ;
1604- pKernelInfo->hasIndirectStatelessAccess = false ;
16051602
16061603 auto &commandStreamReceiver = pDevice->getUltCommandStreamReceiver <FamilyType>();
16071604 commandStreamReceiver.storeMakeResidentAllocations = true ;
@@ -1627,33 +1624,6 @@ HWTEST_F(KernelResidencyTest, givenKernelWithNoKernelArgAtomicThenKernelHasIndir
16271624 pKernelInfo->kernelDescriptor .kernelAttributes .hasNonKernelArgLoad = false ;
16281625 pKernelInfo->kernelDescriptor .kernelAttributes .hasNonKernelArgStore = false ;
16291626 pKernelInfo->kernelDescriptor .kernelAttributes .hasNonKernelArgAtomic = true ;
1630- pKernelInfo->hasIndirectStatelessAccess = false ;
1631-
1632- auto &commandStreamReceiver = pDevice->getUltCommandStreamReceiver <FamilyType>();
1633- commandStreamReceiver.storeMakeResidentAllocations = true ;
1634-
1635- auto memoryManager = commandStreamReceiver.getMemoryManager ();
1636- pKernelInfo->kernelAllocation = memoryManager->allocateGraphicsMemoryWithProperties (MockAllocationProperties{pDevice->getRootDeviceIndex (), MemoryConstants::pageSize});
1637-
1638- MockProgram program (toClDeviceVector (*pClDevice));
1639- MockContext ctx;
1640- program.setContext (&ctx);
1641- program.buildInfos [pDevice->getRootDeviceIndex ()].globalSurface = new MockGraphicsAllocation ();
1642- std::unique_ptr<MockKernel> pKernel (new MockKernel (&program, *pKernelInfo, *pClDevice));
1643- ASSERT_EQ (CL_SUCCESS, pKernel->initialize ());
1644-
1645- EXPECT_TRUE (pKernel->getHasIndirectAccess ());
1646-
1647- memoryManager->freeGraphicsMemory (pKernelInfo->kernelAllocation );
1648- }
1649-
1650- HWTEST_F (KernelResidencyTest, givenKernelWithhasIndirectStatelessAccessThenKernelHasIndirectAccessIsSetToTrue) {
1651- auto pKernelInfo = std::make_unique<KernelInfo>();
1652- pKernelInfo->kernelDescriptor .kernelAttributes .simdSize = 1 ;
1653- pKernelInfo->kernelDescriptor .kernelAttributes .hasNonKernelArgLoad = false ;
1654- pKernelInfo->kernelDescriptor .kernelAttributes .hasNonKernelArgStore = false ;
1655- pKernelInfo->kernelDescriptor .kernelAttributes .hasNonKernelArgAtomic = false ;
1656- pKernelInfo->hasIndirectStatelessAccess = true ;
16571627
16581628 auto &commandStreamReceiver = pDevice->getUltCommandStreamReceiver <FamilyType>();
16591629 commandStreamReceiver.storeMakeResidentAllocations = true ;
0 commit comments