mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 06:24:51 +08:00
feature: initialize regionCount
Related-To: NEO-12138 Signed-off-by: Tomasz Biernacik <tomasz.biernacik@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6730011c3b
commit
46f3d27339
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user