Remove HardwareCapabilities struct

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2021-10-08 13:01:26 +00:00
committed by Compute-Runtime-Automation
parent ec1e39bab8
commit 5856c283c5
24 changed files with 44 additions and 125 deletions

View File

@@ -810,12 +810,11 @@ TEST_F(DeviceTest, givenCallToDevicePropertiesThenMaximumMemoryToBeAllocatedIsCo
deviceProperties.maxMemAllocSize = 0;
device->getProperties(&deviceProperties);
EXPECT_EQ(deviceProperties.maxMemAllocSize, this->neoDevice->getDeviceInfo().maxMemAllocSize);
HardwareCapabilities hwCaps = {0};
auto &hwHelper = HwHelper::get(defaultHwInfo->platform.eRenderCoreFamily);
hwHelper.setupHardwareCapabilities(&hwCaps, *defaultHwInfo);
auto expectedSize = this->neoDevice->getDeviceInfo().globalMemSize;
if (!this->neoDevice->getDeviceInfo().sharedSystemAllocationsSupport) {
expectedSize = std::min(expectedSize, hwCaps.maxMemAllocSize);
expectedSize = std::min(expectedSize, hwHelper.getMaxMemAllocSize());
}
EXPECT_EQ(deviceProperties.maxMemAllocSize, expectedSize);
}