Skip to content

Commit d5b2f03

Browse files
Revert "Enable eviction only when needed flag in wddm"
This reverts commit aced552. Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
1 parent 78c96db commit d5b2f03

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

opencl/test/unit_test/os_interface/windows/wddm20_tests.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ TEST_F(Wddm20Tests, GivenMultipleHandlesWhenMakingResidentThenBytesToTrimIsCorre
814814
EXPECT_EQ(gdi->getMakeResidentArg().NumBytesToTrim, bytesToTrim);
815815
}
816816

817-
TEST_F(Wddm20Tests, WhenMakingNonResidentAndEvictNotNeededThenEvictIsCalledWithProperFlagSet) {
817+
TEST_F(Wddm20Tests, WhenMakingNonResidentThenEvictIsCalled) {
818818
D3DKMT_HANDLE handle = (D3DKMT_HANDLE)0x1234;
819819

820820
gdi->getEvictArg().AllocationList = nullptr;
@@ -831,7 +831,6 @@ TEST_F(Wddm20Tests, WhenMakingNonResidentAndEvictNotNeededThenEvictIsCalledWithP
831831
EXPECT_EQ(&handle, gdi->getEvictArg().AllocationList);
832832
EXPECT_EQ(wddm->getDeviceHandle(), gdi->getEvictArg().hDevice);
833833
EXPECT_EQ(0u, gdi->getEvictArg().NumBytesToTrim);
834-
EXPECT_EQ(1u, gdi->getEvictArg().Flags.EvictOnlyIfNecessary);
835834
}
836835

837836
TEST_F(Wddm20Tests, givenDestroyAllocationWhenItIsCalledThenAllocationIsPassedToDestroyAllocation) {

shared/source/os_interface/windows/wddm/wddm.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,6 @@ bool Wddm::evict(const D3DKMT_HANDLE *handleList, uint32_t numOfHandles, uint64_
366366
evict.hDevice = device;
367367
evict.NumAllocations = numOfHandles;
368368
evict.NumBytesToTrim = 0;
369-
evict.Flags.EvictOnlyIfNecessary = 1;
370369

371370
status = getGdi()->evict(&evict);
372371

0 commit comments

Comments
 (0)