mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
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:
committed by
Compute-Runtime-Automation
parent
d4a98adbe1
commit
47e064a686
@@ -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) {
|
||||
|
||||
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user