mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
fix: add limitations for setting gmm flag Cacheable
- move isCachingOnCpuAvailable to product helper - isCachingOnCpuAvailable should return false on mtl - if wsl, skip checking method from product helper Related-To: NEO-7194 Signed-off-by: Cencelewska, Katarzyna <katarzyna.cencelewska@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6f21d133cf
commit
d2436a8231
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Intel Corporation
|
||||
* Copyright (C) 2021-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -16,6 +16,7 @@ bool RootDeviceEnvironment::initOsInterface(std::unique_ptr<HwDeviceId> &&hwDevi
|
||||
if (hwDeviceId->getDriverModelType() == DriverModelType::DRM) {
|
||||
return initDrmOsInterface(std::move(hwDeviceId), rootDeviceIndex, this);
|
||||
} else {
|
||||
this->isWddmOnLinuxEnable = true;
|
||||
return initWddmOsInterface(std::move(hwDeviceId), this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -207,6 +207,7 @@ class ProductHelper {
|
||||
virtual uint32_t getNumberOfPartsInTileForConcurrentKernel() const = 0;
|
||||
virtual bool is48bResourceNeededForRayTracing() const = 0;
|
||||
virtual bool disableL3CacheForDebug(const HardwareInfo &hwInfo) const = 0;
|
||||
virtual bool isCachingOnCpuAvailable() const = 0;
|
||||
|
||||
virtual ~ProductHelper() = default;
|
||||
|
||||
|
||||
@@ -791,4 +791,8 @@ bool ProductHelperHw<gfxProduct>::disableL3CacheForDebug(const HardwareInfo &) c
|
||||
return false;
|
||||
}
|
||||
|
||||
template <PRODUCT_FAMILY gfxProduct>
|
||||
bool ProductHelperHw<gfxProduct>::isCachingOnCpuAvailable() const {
|
||||
return true;
|
||||
}
|
||||
} // namespace NEO
|
||||
|
||||
@@ -160,6 +160,7 @@ class ProductHelperHw : public ProductHelper {
|
||||
bool isCalculationForDisablingEuFusionWithDpasNeeded(const HardwareInfo &hwInfo) const override;
|
||||
bool is48bResourceNeededForRayTracing() const override;
|
||||
bool disableL3CacheForDebug(const HardwareInfo &hwInfo) const override;
|
||||
bool isCachingOnCpuAvailable() const override;
|
||||
|
||||
~ProductHelperHw() override = default;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user