mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-20 16:46:43 +08:00
Remove HardwareCapabilities struct
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ec1e39bab8
commit
5856c283c5
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user