correct name of evict flag to match wddm

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2022-08-22 12:11:44 +00:00
committed by Compute-Runtime-Automation
parent a6c7f341dd
commit 315f6230bf
30 changed files with 81 additions and 81 deletions

View File

@ -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;

View File

@ -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;