mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
Enable eviction only when needed flag in wddm
Related-To: NEO-7179 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
02e4ddbdfa
commit
aced55243c
@ -814,7 +814,7 @@ TEST_F(Wddm20Tests, GivenMultipleHandlesWhenMakingResidentThenBytesToTrimIsCorre
|
||||
EXPECT_EQ(gdi->getMakeResidentArg().NumBytesToTrim, bytesToTrim);
|
||||
}
|
||||
|
||||
TEST_F(Wddm20Tests, WhenMakingNonResidentThenEvictIsCalled) {
|
||||
TEST_F(Wddm20Tests, WhenMakingNonResidentAndEvictNotNeededThenEvictIsCalledWithProperFlagSet) {
|
||||
D3DKMT_HANDLE handle = (D3DKMT_HANDLE)0x1234;
|
||||
|
||||
gdi->getEvictArg().AllocationList = nullptr;
|
||||
@ -831,6 +831,7 @@ TEST_F(Wddm20Tests, WhenMakingNonResidentThenEvictIsCalled) {
|
||||
EXPECT_EQ(&handle, gdi->getEvictArg().AllocationList);
|
||||
EXPECT_EQ(wddm->getDeviceHandle(), gdi->getEvictArg().hDevice);
|
||||
EXPECT_EQ(0u, gdi->getEvictArg().NumBytesToTrim);
|
||||
EXPECT_EQ(1u, gdi->getEvictArg().Flags.EvictOnlyIfNecessary);
|
||||
}
|
||||
|
||||
TEST_F(Wddm20Tests, givenDestroyAllocationWhenItIsCalledThenAllocationIsPassedToDestroyAllocation) {
|
||||
|
Reference in New Issue
Block a user