@@ -318,7 +318,7 @@ HWTEST_F(TbxCommandStreamTests, givenDbgDeviceIdFlagIsSetWhenTbxCsrIsCreatedThen
318318 EXPECT_EQ (9u , tbxCsr->aubDeviceId );
319319}
320320
321- HWTEST_F (TbxCommandSteamSimpleTest, givenTbxCsrWhenCallingMakeSurfacePackNonResidentThenOnlyResidentAllocationsAreScheduledForCoherence ) {
321+ HWTEST_F (TbxCommandSteamSimpleTest, givenTbxCsrWhenCallingMakeSurfacePackNonResidentThenOnlyResidentAllocationsAddedAllocationsForDownload ) {
322322 MockTbxCsr<FamilyType> tbxCsr{*pDevice->executionEnvironment };
323323 MockOsContext osContext (0 , 1 , aub_stream::ENGINE_RCS, PreemptionMode::Disabled, false );
324324 tbxCsr.setupContext (osContext);
@@ -343,7 +343,7 @@ HWTEST_F(TbxCommandSteamSimpleTest, givenTbxCsrWhenCallingWaitForTaskCountWithKm
343343 struct MockTbxCsr : TbxCommandStreamReceiverHw<FamilyType> {
344344 using CommandStreamReceiver::latestFlushedTaskCount;
345345 using TbxCommandStreamReceiverHw<FamilyType>::TbxCommandStreamReceiverHw;
346- void makeCoherent (GraphicsAllocation &gfxAllocation) override {
346+ void downloadAllocation (GraphicsAllocation &gfxAllocation) override {
347347 *reinterpret_cast <uint32_t *>(CommandStreamReceiver::getTagAllocation ()->getUnderlyingBuffer ()) = this ->latestFlushedTaskCount ;
348348 downloadedAllocations.insert (&gfxAllocation);
349349 }
@@ -479,14 +479,14 @@ HWTEST_F(TbxCommandStreamTests, givenTbxCommandStreamReceiverWhenMakeResidentIsC
479479 EXPECT_TRUE (tbxCsr.writeMemoryWithAubManagerCalled );
480480}
481481
482- HWTEST_F (TbxCommandStreamTests, givenTbxCommandStreamReceiverWhenMakeCoherentIsCalledThenItShouldCallTheExpectedHwContextFunctions ) {
482+ HWTEST_F (TbxCommandStreamTests, givenTbxCommandStreamReceiverWhenDownloadAllocationIsCalledThenItShouldCallTheExpectedHwContextFunctions ) {
483483 MockTbxCsr<FamilyType> tbxCsr (*pDevice->executionEnvironment );
484484 MockOsContext osContext (0 , 1 , aub_stream::ENGINE_RCS, PreemptionMode::Disabled, false );
485485 tbxCsr.setupContext (osContext);
486486 auto mockHardwareContext = static_cast <MockHardwareContext *>(tbxCsr.hardwareContextController ->hardwareContexts [0 ].get ());
487487
488488 MockGraphicsAllocation allocation (reinterpret_cast <void *>(0x1000 ), 0x1000 );
489- tbxCsr.makeCoherent (allocation);
489+ tbxCsr.downloadAllocation (allocation);
490490
491491 EXPECT_TRUE (mockHardwareContext->readMemoryCalled );
492492}
0 commit comments