@@ -383,7 +383,7 @@ TEST_F(Wddm20Tests, makeResidentNonResident) {
383383 error = wddm->evict (&allocation.handle , 1 , sizeToTrim);
384384 EXPECT_TRUE (error);
385385
386- auto monitoredFence = osContextWin->getMonitoredFence ();
386+ auto monitoredFence = osContextWin->getResidencyController (). getMonitoredFence ();
387387 UINT64 fenceValue = 100 ;
388388 monitoredFence.cpuAddress = &fenceValue;
389389 monitoredFence.currentFenceValue = 101 ;
@@ -634,7 +634,7 @@ TEST_F(Wddm20Tests, givenDestroyAllocationWhenItIsCalledThenAllocationIsPassedTo
634634 allocation.getResidencyData ().updateCompletionData (10 , osContext.get ()->getContextId ());
635635 allocation.handle = ALLOCATION_HANDLE;
636636
637- *osContextWin->getMonitoredFence ().cpuAddress = 10 ;
637+ *osContextWin->getResidencyController (). getMonitoredFence ().cpuAddress = 10 ;
638638
639639 D3DKMT_HANDLE handle = (D3DKMT_HANDLE)0x1234 ;
640640
@@ -662,7 +662,7 @@ TEST_F(Wddm20Tests, WhenLastFenceLessEqualThanMonitoredThenWaitFromCpuIsNotCalle
662662 allocation.getResidencyData ().updateCompletionData (10 , osContext.get ()->getContextId ());
663663 allocation.handle = ALLOCATION_HANDLE;
664664
665- *osContextWin->getMonitoredFence ().cpuAddress = 10 ;
665+ *osContextWin->getResidencyController (). getMonitoredFence ().cpuAddress = 10 ;
666666
667667 gdi->getWaitFromCpuArg ().FenceValueArray = nullptr ;
668668 gdi->getWaitFromCpuArg ().Flags .Value = 0 ;
@@ -685,7 +685,7 @@ TEST_F(Wddm20Tests, WhenLastFenceGreaterThanMonitoredThenWaitFromCpuIsCalled) {
685685 allocation.getResidencyData ().updateCompletionData (10 , osContext.get ()->getContextId ());
686686 allocation.handle = ALLOCATION_HANDLE;
687687
688- *osContextWin->getMonitoredFence ().cpuAddress = 10 ;
688+ *osContextWin->getResidencyController (). getMonitoredFence ().cpuAddress = 10 ;
689689
690690 gdi->getWaitFromCpuArg ().FenceValueArray = nullptr ;
691691 gdi->getWaitFromCpuArg ().Flags .Value = 0 ;
@@ -711,7 +711,7 @@ TEST_F(Wddm20Tests, createMonitoredFenceIsInitializedWithFenceValueZeroAndCurren
711711 wddm->wddmInterface ->createMonitoredFence (*osContextWin);
712712
713713 EXPECT_EQ (0u , gdi->getCreateSynchronizationObject2Arg ().Info .MonitoredFence .InitialFenceValue );
714- EXPECT_EQ (1u , osContextWin->getMonitoredFence ().currentFenceValue );
714+ EXPECT_EQ (1u , osContextWin->getResidencyController (). getMonitoredFence ().currentFenceValue );
715715}
716716
717717NTSTATUS APIENTRY queryResourceInfoMock (D3DKMT_QUERYRESOURCEINFO *pData) {
0 commit comments