mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
Revert "Enable eviction only when needed flag in wddm"
This reverts commit aced55243c
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
78c96db2fa
commit
d5b2f03dc4
@ -814,7 +814,7 @@ TEST_F(Wddm20Tests, GivenMultipleHandlesWhenMakingResidentThenBytesToTrimIsCorre
|
|||||||
EXPECT_EQ(gdi->getMakeResidentArg().NumBytesToTrim, bytesToTrim);
|
EXPECT_EQ(gdi->getMakeResidentArg().NumBytesToTrim, bytesToTrim);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(Wddm20Tests, WhenMakingNonResidentAndEvictNotNeededThenEvictIsCalledWithProperFlagSet) {
|
TEST_F(Wddm20Tests, WhenMakingNonResidentThenEvictIsCalled) {
|
||||||
D3DKMT_HANDLE handle = (D3DKMT_HANDLE)0x1234;
|
D3DKMT_HANDLE handle = (D3DKMT_HANDLE)0x1234;
|
||||||
|
|
||||||
gdi->getEvictArg().AllocationList = nullptr;
|
gdi->getEvictArg().AllocationList = nullptr;
|
||||||
@ -831,7 +831,6 @@ TEST_F(Wddm20Tests, WhenMakingNonResidentAndEvictNotNeededThenEvictIsCalledWithP
|
|||||||
EXPECT_EQ(&handle, gdi->getEvictArg().AllocationList);
|
EXPECT_EQ(&handle, gdi->getEvictArg().AllocationList);
|
||||||
EXPECT_EQ(wddm->getDeviceHandle(), gdi->getEvictArg().hDevice);
|
EXPECT_EQ(wddm->getDeviceHandle(), gdi->getEvictArg().hDevice);
|
||||||
EXPECT_EQ(0u, gdi->getEvictArg().NumBytesToTrim);
|
EXPECT_EQ(0u, gdi->getEvictArg().NumBytesToTrim);
|
||||||
EXPECT_EQ(1u, gdi->getEvictArg().Flags.EvictOnlyIfNecessary);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(Wddm20Tests, givenDestroyAllocationWhenItIsCalledThenAllocationIsPassedToDestroyAllocation) {
|
TEST_F(Wddm20Tests, givenDestroyAllocationWhenItIsCalledThenAllocationIsPassedToDestroyAllocation) {
|
||||||
|
@ -366,7 +366,6 @@ bool Wddm::evict(const D3DKMT_HANDLE *handleList, uint32_t numOfHandles, uint64_
|
|||||||
evict.hDevice = device;
|
evict.hDevice = device;
|
||||||
evict.NumAllocations = numOfHandles;
|
evict.NumAllocations = numOfHandles;
|
||||||
evict.NumBytesToTrim = 0;
|
evict.NumBytesToTrim = 0;
|
||||||
evict.Flags.EvictOnlyIfNecessary = 1;
|
|
||||||
|
|
||||||
status = getGdi()->evict(&evict);
|
status = getGdi()->evict(&evict);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user