refactor: improve creating 48b resources

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2023-12-28 14:18:34 +00:00
committed by Compute-Runtime-Automation
parent 5535ef3049
commit d7b6f11ced
5 changed files with 50 additions and 5 deletions

View File

@@ -476,8 +476,11 @@ bool MemoryManager::getAllocationData(AllocationData &allocationData, const Allo
}
switch (properties.allocationType) {
case AllocationType::deferredTasksList:
case AllocationType::commandBuffer:
case AllocationType::ringBuffer:
allocationData.flags.resource48Bit = helper.is48ResourceNeededForCmdBuffer();
break;
case AllocationType::deferredTasksList:
case AllocationType::image:
case AllocationType::indirectObjectHeap:
case AllocationType::instructionHeap:
@@ -495,7 +498,6 @@ bool MemoryManager::getAllocationData(AllocationData &allocationData, const Allo
case AllocationType::timestampPacketTagBuffer:
case AllocationType::debugModuleArea:
case AllocationType::gpuTimestampDeviceBuffer:
case AllocationType::ringBuffer:
case AllocationType::semaphoreBuffer:
allocationData.flags.resource48Bit = true;
break;