Account for hwInfo when checking for implicit scaling support

Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
This commit is contained in:
Raiyan Latif
2022-04-12 15:42:23 +00:00
committed by Compute-Runtime-Automation
parent 858766c080
commit c856899dbb
2 changed files with 31 additions and 2 deletions

View File

@@ -79,9 +79,10 @@ void Device::initializeCaps() {
deviceInfo.maxMemAllocSize = std::min(deviceInfo.globalMemSize, deviceInfo.maxMemAllocSize); // if globalMemSize was reduced for 32b
uint32_t subDeviceCount = HwHelper::getSubDevicesCount(&getHardwareInfo());
bool platformImplicitScaling = hwHelper.platformSupportsImplicitScaling(hwInfo);
if (((NEO::ImplicitScalingHelper::isImplicitScalingEnabled(
getDeviceBitfield(), true))) &&
getDeviceBitfield(), platformImplicitScaling))) &&
(!isSubDevice()) && (subDeviceCount > 1)) {
deviceInfo.maxMemAllocSize = deviceInfo.globalMemSize;
}