fix: update slm size in capability table based on gt system info

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2024-07-08 08:49:54 +00:00
committed by Compute-Runtime-Automation
parent d4a98adbe1
commit 47e064a686
4 changed files with 17 additions and 1 deletions

View File

@@ -930,6 +930,10 @@ void Drm::setupSystemInfo(HardwareInfo *hwInfo, SystemInfo *sysInfo) {
gtSysInfo->MaxDualSubSlicesSupported = sysInfo->getMaxDualSubSlicesSupported();
gtSysInfo->CsrSizeInMb = sysInfo->getCsrSizeInMb();
gtSysInfo->SLMSizeInKb = sysInfo->getSlmSizePerDss();
if (gtSysInfo->SLMSizeInKb) {
hwInfo->capabilityTable.slmSize = gtSysInfo->SLMSizeInKb;
}
}
void Drm::setupCacheInfo(const HardwareInfo &hwInfo) {

View File

@@ -110,6 +110,7 @@ bool Wddm::init() {
hardwareInfo->capabilityTable.instrumentationEnabled =
(hardwareInfo->capabilityTable.instrumentationEnabled && instrumentationEnabled);
hardwareInfo->capabilityTable.slmSize = gtSystemInfo->SLMSizeInKb;
rootDeviceEnvironment.initProductHelper();
rootDeviceEnvironment.initCompilerProductHelper();
auto &productHelper = rootDeviceEnvironment.getHelper<ProductHelper>();