mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
correct name of evict flag to match wddm
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
a6c7f341dd
commit
315f6230bf
@ -816,11 +816,11 @@ TEST_F(Wddm20Tests, GivenMultipleHandlesWhenMakingResidentThenBytesToTrimIsCorre
|
||||
|
||||
TEST_F(Wddm20Tests, WhenMakingNonResidentAndEvictNotNeededThenEvictIsCalledWithProperFlagSet) {
|
||||
DebugManagerStateRestore restorer{};
|
||||
DebugManager.flags.PlaformSupportEvictWhenNecessaryFlag.set(1);
|
||||
DebugManager.flags.PlaformSupportEvictIfNecessaryFlag.set(1);
|
||||
|
||||
auto productFamily = rootDeviceEnvironment->getHardwareInfo()->platform.eProductFamily;
|
||||
HwInfoConfig *hwConfig = HwInfoConfig::get(productFamily);
|
||||
wddm->setPlatformSupportEvictWhenNecessaryFlag(*hwConfig);
|
||||
wddm->setPlatformSupportEvictIfNecessaryFlag(*hwConfig);
|
||||
|
||||
D3DKMT_HANDLE handle = (D3DKMT_HANDLE)0x1234;
|
||||
|
||||
|
@ -499,11 +499,11 @@ TEST_F(WddmResidencyControllerTest, GivenListSizeLessThenDoubleCandidateCountWhe
|
||||
|
||||
TEST_F(WddmResidencyControllerWithGdiTest, givenNotUsedAllocationsFromPreviousPeriodicTrimWhenTrimResidencyPeriodicTrimIsCalledThenAllocationsAreEvictedMarkedAndRemovedFromTrimCandidateList) {
|
||||
DebugManagerStateRestore restorer{};
|
||||
DebugManager.flags.PlaformSupportEvictWhenNecessaryFlag.set(1);
|
||||
DebugManager.flags.PlaformSupportEvictIfNecessaryFlag.set(1);
|
||||
|
||||
auto productFamily = rootDeviceEnvironment->getHardwareInfo()->platform.eProductFamily;
|
||||
HwInfoConfig *hwConfig = HwInfoConfig::get(productFamily);
|
||||
wddm->setPlatformSupportEvictWhenNecessaryFlag(*hwConfig);
|
||||
wddm->setPlatformSupportEvictIfNecessaryFlag(*hwConfig);
|
||||
|
||||
D3DKMT_TRIMNOTIFICATION trimNotification = {0};
|
||||
trimNotification.Flags.PeriodicTrim = 1;
|
||||
@ -584,11 +584,11 @@ TEST_F(WddmResidencyControllerWithGdiAndMemoryManagerTest, givenTripleAllocation
|
||||
GTEST_SKIP();
|
||||
}
|
||||
DebugManagerStateRestore restorer{};
|
||||
DebugManager.flags.PlaformSupportEvictWhenNecessaryFlag.set(1);
|
||||
DebugManager.flags.PlaformSupportEvictIfNecessaryFlag.set(1);
|
||||
|
||||
auto productFamily = executionEnvironment->rootDeviceEnvironments[0]->getHardwareInfo()->platform.eProductFamily;
|
||||
HwInfoConfig *hwConfig = HwInfoConfig::get(productFamily);
|
||||
wddm->setPlatformSupportEvictWhenNecessaryFlag(*hwConfig);
|
||||
wddm->setPlatformSupportEvictIfNecessaryFlag(*hwConfig);
|
||||
|
||||
D3DKMT_TRIMNOTIFICATION trimNotification = {0};
|
||||
trimNotification.Flags.PeriodicTrim = 1;
|
||||
|
Reference in New Issue
Block a user