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

@ -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());
@ -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();
}

View File

@ -229,7 +229,7 @@ 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) {
@ -237,7 +237,7 @@ class Wddm : public DriverModel {
}
return evictNeeded;
}
void setPlatformSupportEvictWhenNecessaryFlag(const HwInfoConfig &hwInfoConfig);
void setPlatformSupportEvictIfNecessaryFlag(const HwInfoConfig &hwInfoConfig);
void populateAdditionalAdapterInfoOptions(const ADAPTER_INFO_KMD &adapterInfo);
GMM_GFX_PARTITIONING gfxPartition{};
@ -285,7 +285,7 @@ class Wddm : public DriverModel {
unsigned int enablePreemptionRegValue = 1;
bool platformSupportsEvictWhenNecessary = false;
bool platformSupportsEvictIfNecessary = false;
bool instrumentationEnabled = false;
};
} // namespace NEO