mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
fix: set isLockable flag in storage info even if no memory banks are used
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b8c925b3b5
commit
1948781b67
@@ -19,8 +19,10 @@
|
||||
|
||||
namespace NEO {
|
||||
StorageInfo MemoryManager::createStorageInfoFromProperties(const AllocationProperties &properties) {
|
||||
StorageInfo storageInfo{};
|
||||
storageInfo.isLockable = GraphicsAllocation::isLockable(properties.allocationType) || (properties.makeDeviceBufferLockable && properties.allocationType == AllocationType::BUFFER);
|
||||
if (properties.subDevicesBitfield.count() == 0) {
|
||||
return {};
|
||||
return storageInfo;
|
||||
}
|
||||
|
||||
const auto deviceCount = GfxCoreHelper::getSubDevicesCount(executionEnvironment.rootDeviceEnvironments[properties.rootDeviceIndex]->getHardwareInfo());
|
||||
@@ -38,9 +40,10 @@ StorageInfo MemoryManager::createStorageInfoFromProperties(const AllocationPrope
|
||||
preferredTile.set(leastOccupiedBank);
|
||||
}
|
||||
|
||||
StorageInfo storageInfo{preferredTile, allTilesValue};
|
||||
storageInfo.memoryBanks = preferredTile;
|
||||
storageInfo.pageTablesVisibility = allTilesValue;
|
||||
|
||||
storageInfo.subDeviceBitfield = properties.subDevicesBitfield;
|
||||
storageInfo.isLockable = GraphicsAllocation::isLockable(properties.allocationType) || (properties.makeDeviceBufferLockable && properties.allocationType == AllocationType::BUFFER);
|
||||
storageInfo.cpuVisibleSegment = GraphicsAllocation::isCpuAccessRequired(properties.allocationType);
|
||||
|
||||
AppResourceHelper::copyResourceTagStr(storageInfo.resourceTag, properties.allocationType,
|
||||
|
||||
Reference in New Issue
Block a user