Skip to content

Commit 00e2ff0

Browse files
fix: correct setting resourceTag in case of system memory storage
Signed-off-by: Mateusz Jablonski <[email protected]>
1 parent c545482 commit 00e2ff0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

shared/source/memory_manager/definitions/storage_info.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ StorageInfo::StorageInfo() = default;
2626
StorageInfo MemoryManager::createStorageInfoFromProperties(const AllocationProperties &properties) {
2727
StorageInfo storageInfo{};
2828
storageInfo.isLockable = GraphicsAllocation::isLockable(properties.allocationType) || (properties.makeDeviceBufferLockable && properties.allocationType == AllocationType::buffer);
29+
30+
AppResourceHelper::copyResourceTagStr(storageInfo.resourceTag, properties.allocationType,
31+
sizeof(storageInfo.resourceTag));
32+
2933
if (properties.subDevicesBitfield.count() == 0) {
3034
return storageInfo;
3135
}
@@ -50,9 +54,6 @@ StorageInfo MemoryManager::createStorageInfoFromProperties(const AllocationPrope
5054
storageInfo.subDeviceBitfield = properties.subDevicesBitfield;
5155
storageInfo.cpuVisibleSegment = GraphicsAllocation::isCpuAccessRequired(properties.allocationType);
5256

53-
AppResourceHelper::copyResourceTagStr(storageInfo.resourceTag, properties.allocationType,
54-
sizeof(storageInfo.resourceTag));
55-
5657
switch (properties.allocationType) {
5758
case AllocationType::constantSurface:
5859
case AllocationType::kernelIsa:

0 commit comments

Comments
 (0)