Skip to content

Commit

Permalink
correct name of evict flag to match wddm
Browse files Browse the repository at this point in the history
Signed-off-by: Zbigniew Zdanowicz <[email protected]>
  • Loading branch information
zzdanowicz authored and Compute-Runtime-Automation committed Aug 22, 2022
1 parent a6c7f34 commit 315f623
Show file tree
Hide file tree
Showing 30 changed files with 81 additions and 81 deletions.
4 changes: 2 additions & 2 deletions opencl/test/unit_test/os_interface/windows/wddm20_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion shared/source/debug_settings/debug_variables_base.inl
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ DECLARE_DEBUG_VARIABLE(int32_t, ForceWddmLowPriorityContextValue, -1, "Force sch
DECLARE_DEBUG_VARIABLE(int32_t, FailBuildProgramWithStatefulAccess, -1, "-1: default, 0: disable, 1: enable, Fail build program/module creation whenever stateful access is discovered (except built in kernels).")
DECLARE_DEBUG_VARIABLE(int32_t, ForceImagesSupport, -1, "-1: default, 0: disable, 1: enable. Override support for Images.")
DECLARE_DEBUG_VARIABLE(int32_t, OverrideL1CachePolicyInSurfaceStateAndStateless, -1, "-1: default, >=0 : following policy will be programmed in render surface state (for regular buffers) and stateless L1 caching")
DECLARE_DEBUG_VARIABLE(int32_t, PlaformSupportEvictWhenNecessaryFlag, -1, "-1: default - platform specific, 0: disable, 1: enable")
DECLARE_DEBUG_VARIABLE(int32_t, PlaformSupportEvictIfNecessaryFlag, -1, "-1: default - platform specific, 0: disable, 1: enable")
DECLARE_DEBUG_VARIABLE(int32_t, ForceEvictOnlyIfNecessaryFlag, -1, "-1: default - driver selects when to use, 0: force never use this flag, 1: force always use this flag")

/*LOGGING FLAGS*/
Expand Down
4 changes: 2 additions & 2 deletions shared/source/os_interface/hw_info_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class HwInfoConfig {
virtual bool isAdjustWalkOrderAvailable(const HardwareInfo &hwInfo) const = 0;
virtual bool isAssignEngineRoundRobinSupported() const = 0;
virtual uint32_t getL1CachePolicy() const = 0;
virtual bool isEvictionWhenNecessaryFlagSupported() const = 0;
virtual bool isEvictionIfNecessaryFlagSupported() const = 0;
virtual void adjustNumberOfCcs(HardwareInfo &hwInfo) const = 0;
virtual bool isPrefetcherDisablingInDirectSubmissionRequired() const = 0;

Expand Down Expand Up @@ -237,7 +237,7 @@ class HwInfoConfigHw : public HwInfoConfig {
bool isAdjustWalkOrderAvailable(const HardwareInfo &hwInfo) const override;
bool isAssignEngineRoundRobinSupported() const override;
uint32_t getL1CachePolicy() const override;
bool isEvictionWhenNecessaryFlagSupported() const override;
bool isEvictionIfNecessaryFlagSupported() const override;
void adjustNumberOfCcs(HardwareInfo &hwInfo) const override;
bool isPrefetcherDisablingInDirectSubmissionRequired() const override;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ bool HwInfoConfigHw<gfxProduct>::isMatrixMultiplyAccumulateSupported(const Hardw
}

template <PRODUCT_FAMILY gfxProduct>
bool HwInfoConfigHw<gfxProduct>::isEvictionWhenNecessaryFlagSupported() const {
bool HwInfoConfigHw<gfxProduct>::isEvictionIfNecessaryFlagSupported() const {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ bool HwInfoConfigHw<gfxProduct>::isMatrixMultiplyAccumulateSupported(const Hardw
}

template <PRODUCT_FAMILY gfxProduct>
bool HwInfoConfigHw<gfxProduct>::isEvictionWhenNecessaryFlagSupported() const {
bool HwInfoConfigHw<gfxProduct>::isEvictionIfNecessaryFlagSupported() const {
return true;
}

Expand Down
14 changes: 7 additions & 7 deletions shared/source/os_interface/windows/wddm/wddm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ bool Wddm::init() {
if (hwConfig->configureHwInfoWddm(hardwareInfo.get(), hardwareInfo.get(), nullptr)) {
return false;
}
setPlatformSupportEvictWhenNecessaryFlag(*hwConfig);
setPlatformSupportEvictIfNecessaryFlag(*hwConfig);

auto preemptionMode = PreemptionHelper::getDefaultPreemptionMode(*hardwareInfo);
rootDeviceEnvironment.setHwInfo(hardwareInfo.get());
Expand Down Expand Up @@ -140,12 +140,12 @@ bool Wddm::init() {
return configureDeviceAddressSpace();
}

void Wddm::setPlatformSupportEvictWhenNecessaryFlag(const HwInfoConfig &hwInfoConfig) {
platformSupportsEvictWhenNecessary = hwInfoConfig.isEvictionWhenNecessaryFlagSupported();
int32_t overridePlatformSupportsEvictWhenNecessary =
DebugManager.flags.PlaformSupportEvictWhenNecessaryFlag.get();
if (overridePlatformSupportsEvictWhenNecessary != -1) {
platformSupportsEvictWhenNecessary = !!overridePlatformSupportsEvictWhenNecessary;
void Wddm::setPlatformSupportEvictIfNecessaryFlag(const HwInfoConfig &hwInfoConfig) {
platformSupportsEvictIfNecessary = hwInfoConfig.isEvictionIfNecessaryFlagSupported();
int32_t overridePlatformSupportsEvictIfNecessary =
DebugManager.flags.PlaformSupportEvictIfNecessaryFlag.get();
if (overridePlatformSupportsEvictIfNecessary != -1) {
platformSupportsEvictIfNecessary = !!overridePlatformSupportsEvictIfNecessary;
}
forceEvictOnlyIfNecessary = DebugManager.flags.ForceEvictOnlyIfNecessaryFlag.get();
}
Expand Down
6 changes: 3 additions & 3 deletions shared/source/os_interface/windows/wddm/wddm.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,15 @@ class Wddm : public DriverModel {
MOCKABLE_VIRTUAL void createPagingFenceLogger();
bool setLowPriorityContextParam(D3DKMT_HANDLE contextHandle);
bool adjustEvictNeededParameter(bool evictNeeded) {
if (evictNeeded == false && platformSupportsEvictWhenNecessary == false) {
if (evictNeeded == false && platformSupportsEvictIfNecessary == false) {
evictNeeded = true;
}
if (forceEvictOnlyIfNecessary != -1) {
evictNeeded = !forceEvictOnlyIfNecessary;
}
return evictNeeded;
}
void setPlatformSupportEvictWhenNecessaryFlag(const HwInfoConfig &hwInfoConfig);
void setPlatformSupportEvictIfNecessaryFlag(const HwInfoConfig &hwInfoConfig);
void populateAdditionalAdapterInfoOptions(const ADAPTER_INFO_KMD &adapterInfo);

GMM_GFX_PARTITIONING gfxPartition{};
Expand Down Expand Up @@ -285,7 +285,7 @@ class Wddm : public DriverModel {

unsigned int enablePreemptionRegValue = 1;

bool platformSupportsEvictWhenNecessary = false;
bool platformSupportsEvictIfNecessary = false;
bool instrumentationEnabled = false;
};
} // namespace NEO
2 changes: 1 addition & 1 deletion shared/test/common/mocks/mock_hw_info_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ uint64_t HwInfoConfigHw<IGFX_UNKNOWN>::getHostMemCapabilitiesValue() {
}

template <>
bool HwInfoConfigHw<IGFX_UNKNOWN>::isEvictionWhenNecessaryFlagSupported() const {
bool HwInfoConfigHw<IGFX_UNKNOWN>::isEvictionIfNecessaryFlagSupported() const {
return true;
}

Expand Down
4 changes: 2 additions & 2 deletions shared/test/common/mocks/mock_wddm.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ class WddmMock : public Wddm {
using Wddm::minAddress;
using Wddm::pagingFenceAddress;
using Wddm::pagingQueue;
using Wddm::platformSupportsEvictWhenNecessary;
using Wddm::platformSupportsEvictIfNecessary;
using Wddm::populateAdditionalAdapterInfoOptions;
using Wddm::residencyLogger;
using Wddm::rootDeviceEnvironment;
using Wddm::setPlatformSupportEvictWhenNecessaryFlag;
using Wddm::setPlatformSupportEvictIfNecessaryFlag;
using Wddm::temporaryResources;
using Wddm::timestampFrequency;
using Wddm::wddmInterface;
Expand Down
2 changes: 1 addition & 1 deletion shared/test/common/test_files/igdrcl.config
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ BatchBufferStartPrepatchingWaEnabled = -1
SetVmAdviseAtomicAttribute = -1
DirectSubmissionForceLocalMemoryStorageMode = -1
EnableRingSwitchTagUpdateWa = -1
PlaformSupportEvictWhenNecessaryFlag = -1
PlaformSupportEvictIfNecessaryFlag = -1
DirectSubmissionReadBackCommandBuffer = -1
DirectSubmissionReadBackRingBuffer = -1
ReadBackCommandBufferAllocation = -1
Expand Down
4 changes: 2 additions & 2 deletions shared/test/unit_test/gen11/ehl/test_hw_info_config_ehl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ EHLTEST_F(EhlHwInfo, givenHwInfoConfigWhenGetProductConfigThenCorrectMatchIsFoun
EXPECT_EQ(hwInfoConfig.getProductConfigFromHwInfo(hwInfo), AOT::EHL);
}

EHLTEST_F(EhlHwInfo, givenHwInfoConfigWhenGettingEvictWhenNecessaryFlagSupportedThenExpectTrue) {
EHLTEST_F(EhlHwInfo, givenHwInfoConfigWhenGettingEvictIfNecessaryFlagSupportedThenExpectTrue) {
HardwareInfo hwInfo = *defaultHwInfo;
const auto &hwInfoConfig = *HwInfoConfig::get(hwInfo.platform.eProductFamily);
EXPECT_TRUE(hwInfoConfig.isEvictionWhenNecessaryFlagSupported());
EXPECT_TRUE(hwInfoConfig.isEvictionIfNecessaryFlagSupported());
}
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ ICLLPTEST_F(IcllpHwInfo, givenHwInfoConfigWhenGetProductConfigThenCorrectMatchIs
EXPECT_EQ(hwInfoConfig.getProductConfigFromHwInfo(*defaultHwInfo), AOT::ICL);
}

ICLLPTEST_F(IcllpHwInfo, givenHwInfoConfigWhenGettingEvictWhenNecessaryFlagSupportedThenExpectTrue) {
ICLLPTEST_F(IcllpHwInfo, givenHwInfoConfigWhenGettingEvictIfNecessaryFlagSupportedThenExpectTrue) {
HardwareInfo hwInfo = *defaultHwInfo;
const auto &hwInfoConfig = *HwInfoConfig::get(hwInfo.platform.eProductFamily);
EXPECT_TRUE(hwInfoConfig.isEvictionWhenNecessaryFlagSupported());
EXPECT_TRUE(hwInfoConfig.isEvictionIfNecessaryFlagSupported());
}
4 changes: 2 additions & 2 deletions shared/test/unit_test/gen11/lkf/test_hw_info_config_lkf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ LKFTEST_F(LkfHwInfo, givenHwInfoConfigWhenGetProductConfigThenCorrectMatchIsFoun
EXPECT_EQ(hwInfoConfig.getProductConfigFromHwInfo(hwInfo), AOT::LKF);
}

LKFTEST_F(LkfHwInfo, givenHwInfoConfigWhenGettingEvictWhenNecessaryFlagSupportedThenExpectTrue) {
LKFTEST_F(LkfHwInfo, givenHwInfoConfigWhenGettingEvictIfNecessaryFlagSupportedThenExpectTrue) {
HardwareInfo hwInfo = *defaultHwInfo;
const auto &hwInfoConfig = *HwInfoConfig::get(hwInfo.platform.eProductFamily);
EXPECT_TRUE(hwInfoConfig.isEvictionWhenNecessaryFlagSupported());
EXPECT_TRUE(hwInfoConfig.isEvictionIfNecessaryFlagSupported());
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ ADLNTEST_F(AdlnHwInfo, givenHwInfoConfigWhenGetProductConfigThenCorrectMatchIsFo
EXPECT_EQ(hwInfoConfig.getProductConfigFromHwInfo(hwInfo), AOT::ADL_N);
}

ADLNTEST_F(AdlnHwInfo, givenHwInfoConfigWhenGettingEvictWhenNecessaryFlagSupportedThenExpectTrue) {
ADLNTEST_F(AdlnHwInfo, givenHwInfoConfigWhenGettingEvictIfNecessaryFlagSupportedThenExpectTrue) {
HardwareInfo hwInfo = *defaultHwInfo;
const auto &hwInfoConfig = *HwInfoConfig::get(hwInfo.platform.eProductFamily);
EXPECT_TRUE(hwInfoConfig.isEvictionWhenNecessaryFlagSupported());
EXPECT_TRUE(hwInfoConfig.isEvictionIfNecessaryFlagSupported());
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ ADLPTEST_F(AdlpHwInfo, givenHwInfoConfigWhenGetProductConfigThenCorrectMatchIsFo
EXPECT_EQ(hwInfoConfig.getProductConfigFromHwInfo(hwInfo), AOT::ADL_P);
}

ADLPTEST_F(AdlpHwInfo, givenHwInfoConfigWhenGettingEvictWhenNecessaryFlagSupportedThenExpectTrue) {
ADLPTEST_F(AdlpHwInfo, givenHwInfoConfigWhenGettingEvictIfNecessaryFlagSupportedThenExpectTrue) {
HardwareInfo hwInfo = *defaultHwInfo;
const auto &hwInfoConfig = *HwInfoConfig::get(hwInfo.platform.eProductFamily);
EXPECT_TRUE(hwInfoConfig.isEvictionWhenNecessaryFlagSupported());
EXPECT_TRUE(hwInfoConfig.isEvictionIfNecessaryFlagSupported());
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ ADLSTEST_F(AdlsHwInfo, givenHwInfoConfigWhenGetProductConfigThenCorrectMatchIsFo
EXPECT_EQ(hwInfoConfig.getProductConfigFromHwInfo(hwInfo), AOT::ADL_S);
}

ADLSTEST_F(AdlsHwInfo, givenHwInfoConfigWhenGettingEvictWhenNecessaryFlagSupportedThenExpectTrue) {
ADLSTEST_F(AdlsHwInfo, givenHwInfoConfigWhenGettingEvictIfNecessaryFlagSupportedThenExpectTrue) {
HardwareInfo hwInfo = *defaultHwInfo;
const auto &hwInfoConfig = *HwInfoConfig::get(hwInfo.platform.eProductFamily);
EXPECT_TRUE(hwInfoConfig.isEvictionWhenNecessaryFlagSupported());
EXPECT_TRUE(hwInfoConfig.isEvictionIfNecessaryFlagSupported());
}
4 changes: 2 additions & 2 deletions shared/test/unit_test/gen12lp/dg1/test_hw_info_config_dg1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ DG1TEST_F(Dg1HwInfo, givenHwInfoConfigWhenGetProductConfigThenCorrectMatchIsFoun
EXPECT_EQ(hwInfoConfig.getProductConfigFromHwInfo(*defaultHwInfo), AOT::DG1);
}

DG1TEST_F(Dg1HwInfo, givenHwInfoConfigWhenGettingEvictWhenNecessaryFlagSupportedThenExpectTrue) {
DG1TEST_F(Dg1HwInfo, givenHwInfoConfigWhenGettingEvictIfNecessaryFlagSupportedThenExpectTrue) {
HardwareInfo hwInfo = *defaultHwInfo;
const auto &hwInfoConfig = *HwInfoConfig::get(hwInfo.platform.eProductFamily);
EXPECT_TRUE(hwInfoConfig.isEvictionWhenNecessaryFlagSupported());
EXPECT_TRUE(hwInfoConfig.isEvictionIfNecessaryFlagSupported());
}
4 changes: 2 additions & 2 deletions shared/test/unit_test/gen12lp/rkl/test_hw_info_config_rkl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ RKLTEST_F(RklHwInfo, givenHwInfoConfigWhenGetProductConfigThenCorrectMatchIsFoun
EXPECT_EQ(hwInfoConfig.getProductConfigFromHwInfo(hwInfo), AOT::RKL);
}

RKLTEST_F(RklHwInfo, givenHwInfoConfigWhenGettingEvictWhenNecessaryFlagSupportedThenExpectTrue) {
RKLTEST_F(RklHwInfo, givenHwInfoConfigWhenGettingEvictIfNecessaryFlagSupportedThenExpectTrue) {
HardwareInfo hwInfo = *defaultHwInfo;
const auto &hwInfoConfig = *HwInfoConfig::get(hwInfo.platform.eProductFamily);
EXPECT_TRUE(hwInfoConfig.isEvictionWhenNecessaryFlagSupported());
EXPECT_TRUE(hwInfoConfig.isEvictionIfNecessaryFlagSupported());
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ using namespace NEO;

using HwInfoConfigTestTgllp = ::testing::Test;

TGLLPTEST_F(HwInfoConfigTestTgllp, givenHwInfoConfigWhenGettingEvictWhenNecessaryFlagSupportedThenExpectTrue) {
TGLLPTEST_F(HwInfoConfigTestTgllp, givenHwInfoConfigWhenGettingEvictIfNecessaryFlagSupportedThenExpectTrue) {
HardwareInfo hwInfo = *defaultHwInfo;
const auto &hwInfoConfig = *HwInfoConfig::get(hwInfo.platform.eProductFamily);
EXPECT_TRUE(hwInfoConfig.isEvictionWhenNecessaryFlagSupported());
EXPECT_TRUE(hwInfoConfig.isEvictionIfNecessaryFlagSupported());
}
4 changes: 2 additions & 2 deletions shared/test/unit_test/gen8/bdw/test_hw_info_config_bdw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ BDWTEST_F(BdwHwInfo, givenHwInfoConfigWhenGetProductConfigThenCorrectMatchIsFoun
EXPECT_EQ(hwInfoConfig.getProductConfigFromHwInfo(hwInfo), AOT::BDW);
}

BDWTEST_F(BdwHwInfo, givenHwInfoConfigWhenGettingEvictWhenNecessaryFlagSupportedThenExpectTrue) {
BDWTEST_F(BdwHwInfo, givenHwInfoConfigWhenGettingEvictIfNecessaryFlagSupportedThenExpectTrue) {
HardwareInfo hwInfo = *defaultHwInfo;
const auto &hwInfoConfig = *HwInfoConfig::get(hwInfo.platform.eProductFamily);
EXPECT_TRUE(hwInfoConfig.isEvictionWhenNecessaryFlagSupported());
EXPECT_TRUE(hwInfoConfig.isEvictionIfNecessaryFlagSupported());
}

using CompilerHwInfoConfigHelperTestsBdw = ::testing::Test;
Expand Down
4 changes: 2 additions & 2 deletions shared/test/unit_test/gen9/bxt/test_hw_info_config_bxt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ BXTTEST_F(BxtHwInfo, givenHwInfoConfigWhenGetProductConfigThenCorrectMatchIsFoun
EXPECT_EQ(hwInfoConfig.getProductConfigFromHwInfo(hwInfo), AOT::APL);
}

BXTTEST_F(BxtHwInfo, givenHwInfoConfigWhenGettingEvictWhenNecessaryFlagSupportedThenExpectTrue) {
BXTTEST_F(BxtHwInfo, givenHwInfoConfigWhenGettingEvictIfNecessaryFlagSupportedThenExpectTrue) {
HardwareInfo hwInfo = *defaultHwInfo;
const auto &hwInfoConfig = *HwInfoConfig::get(hwInfo.platform.eProductFamily);
EXPECT_TRUE(hwInfoConfig.isEvictionWhenNecessaryFlagSupported());
EXPECT_TRUE(hwInfoConfig.isEvictionIfNecessaryFlagSupported());
}
4 changes: 2 additions & 2 deletions shared/test/unit_test/gen9/cfl/test_hw_info_config_cfl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ CFLTEST_F(CflHwInfo, givenHwInfoConfigWhenGetProductConfigThenCorrectMatchIsFoun
EXPECT_EQ(hwInfoConfig.getProductConfigFromHwInfo(hwInfo), AOT::UNKNOWN_ISA);
}

CFLTEST_F(CflHwInfo, givenHwInfoConfigWhenGettingEvictWhenNecessaryFlagSupportedThenExpectTrue) {
CFLTEST_F(CflHwInfo, givenHwInfoConfigWhenGettingEvictIfNecessaryFlagSupportedThenExpectTrue) {
HardwareInfo hwInfo = *defaultHwInfo;
const auto &hwInfoConfig = *HwInfoConfig::get(hwInfo.platform.eProductFamily);
EXPECT_TRUE(hwInfoConfig.isEvictionWhenNecessaryFlagSupported());
EXPECT_TRUE(hwInfoConfig.isEvictionIfNecessaryFlagSupported());
}
4 changes: 2 additions & 2 deletions shared/test/unit_test/gen9/glk/test_hw_info_config_glk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ GLKTEST_F(GlkHwInfo, givenHwInfoConfigWhenGetProductConfigThenCorrectMatchIsFoun
EXPECT_EQ(hwInfoConfig.getProductConfigFromHwInfo(hwInfo), AOT::GLK);
}

GLKTEST_F(GlkHwInfo, givenHwInfoConfigWhenGettingEvictWhenNecessaryFlagSupportedThenExpectTrue) {
GLKTEST_F(GlkHwInfo, givenHwInfoConfigWhenGettingEvictIfNecessaryFlagSupportedThenExpectTrue) {
HardwareInfo hwInfo = *defaultHwInfo;
const auto &hwInfoConfig = *HwInfoConfig::get(hwInfo.platform.eProductFamily);
EXPECT_TRUE(hwInfoConfig.isEvictionWhenNecessaryFlagSupported());
EXPECT_TRUE(hwInfoConfig.isEvictionIfNecessaryFlagSupported());
}
4 changes: 2 additions & 2 deletions shared/test/unit_test/gen9/kbl/test_hw_info_config_kbl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ KBLTEST_F(KblHwInfo, givenHwInfoConfigWhenGetProductConfigThenCorrectMatchIsFoun
EXPECT_EQ(hwInfoConfig.getProductConfigFromHwInfo(hwInfo), AOT::UNKNOWN_ISA);
}

KBLTEST_F(KblHwInfo, givenHwInfoConfigWhenGettingEvictWhenNecessaryFlagSupportedThenExpectTrue) {
KBLTEST_F(KblHwInfo, givenHwInfoConfigWhenGettingEvictIfNecessaryFlagSupportedThenExpectTrue) {
HardwareInfo hwInfo = *defaultHwInfo;
const auto &hwInfoConfig = *HwInfoConfig::get(hwInfo.platform.eProductFamily);
EXPECT_TRUE(hwInfoConfig.isEvictionWhenNecessaryFlagSupported());
EXPECT_TRUE(hwInfoConfig.isEvictionIfNecessaryFlagSupported());
}
4 changes: 2 additions & 2 deletions shared/test/unit_test/gen9/skl/test_hw_info_config_skl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ SKLTEST_F(SklHwInfo, givenHwInfoConfigWhenGetProductConfigThenCorrectMatchIsFoun
EXPECT_EQ(hwInfoConfig.getProductConfigFromHwInfo(hwInfo), AOT::SKL);
}

SKLTEST_F(SklHwInfo, givenHwInfoConfigWhenGettingEvictWhenNecessaryFlagSupportedThenExpectTrue) {
SKLTEST_F(SklHwInfo, givenHwInfoConfigWhenGettingEvictIfNecessaryFlagSupportedThenExpectTrue) {
HardwareInfo hwInfo = *defaultHwInfo;
const auto &hwInfoConfig = *HwInfoConfig::get(hwInfo.platform.eProductFamily);
EXPECT_TRUE(hwInfoConfig.isEvictionWhenNecessaryFlagSupported());
EXPECT_TRUE(hwInfoConfig.isEvictionIfNecessaryFlagSupported());
}
Loading

0 comments on commit 315f623

Please sign in to comment.