mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Account for hwInfo when checking for implicit scaling support
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
858766c080
commit
c856899dbb
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user