feature: initialize regionCount

Related-To: NEO-12138

Signed-off-by: Tomasz Biernacik <tomasz.biernacik@intel.com>
This commit is contained in:
Tomasz Biernacik
2024-10-18 11:59:51 +00:00
committed by Compute-Runtime-Automation
parent 6730011c3b
commit 46f3d27339
2 changed files with 6 additions and 0 deletions

View File

@@ -499,6 +499,11 @@ int Drm::setupHardwareInfo(const DeviceDescriptor *device, bool setupFeatureTabl
if (numRtStacks > 0) {
hwInfo->capabilityTable.syncNumRTStacksPerDSS = numRtStacks;
}
auto numRegions = systemInfo->getNumRegions();
if (numRegions > 0) {
hwInfo->featureTable.regionCount = numRegions;
}
}
if (!queryMemoryInfo()) {
setPerContextVMRequired(true);

View File

@@ -341,6 +341,7 @@ TEST(DrmSystemInfoTest, givenSetupHardwareInfoWhenQuerySystemInfoSucceedsAndBlob
const auto &newHwInfo = *executionEnvironment->rootDeviceEnvironments[0]->getHardwareInfo();
EXPECT_EQ(newHwInfo.capabilityTable.syncNumRTStacksPerDSS, 2048u);
EXPECT_EQ(newHwInfo.featureTable.regionCount, 1u);
}
TEST(DrmSystemInfoTest, givenZeroBankCountWhenCreatingSystemInfoThenUseDualSubslicesToCalculateL3Size) {