@@ -98,32 +98,32 @@ void DeviceQueue::allocateResources() {
9898 auto &caps = device->getDeviceInfo ();
9999
100100 uint32_t alignedQueueSize = alignUp (queueSize, MemoryConstants::pageSize);
101- queueBuffer = device->getMemoryManager ()->allocateGraphicsMemory ( alignedQueueSize);
101+ queueBuffer = device->getMemoryManager ()->allocateGraphicsMemoryWithProperties ({ alignedQueueSize, GraphicsAllocation::AllocationType::UNDECIDED} );
102102
103103 auto eventPoolBufferSize = static_cast <size_t >(caps.maxOnDeviceEvents ) * sizeof (IGIL_DeviceEvent) + sizeof (IGIL_EventPool);
104104 eventPoolBufferSize = alignUp (eventPoolBufferSize, MemoryConstants::pageSize);
105- eventPoolBuffer = device->getMemoryManager ()->allocateGraphicsMemory ( eventPoolBufferSize);
105+ eventPoolBuffer = device->getMemoryManager ()->allocateGraphicsMemoryWithProperties ({ eventPoolBufferSize, GraphicsAllocation::AllocationType::UNDECIDED} );
106106
107107 auto maxEnqueue = static_cast <size_t >(alignedQueueSize) / sizeof (IGIL_CommandHeader);
108108 auto expectedStackSize = maxEnqueue * sizeof (uint32_t ) * 3 ; // 3 full loads of commands
109109 expectedStackSize = alignUp (expectedStackSize, MemoryConstants::pageSize);
110- stackBuffer = device->getMemoryManager ()->allocateGraphicsMemory ( expectedStackSize);
110+ stackBuffer = device->getMemoryManager ()->allocateGraphicsMemoryWithProperties ({ expectedStackSize, GraphicsAllocation::AllocationType::UNDECIDED} );
111111 memset (stackBuffer->getUnderlyingBuffer (), 0 , stackBuffer->getUnderlyingBufferSize ());
112112
113113 auto queueStorageSize = alignedQueueSize * 2 ; // place for 2 full loads of queue_t
114114 queueStorageSize = alignUp (queueStorageSize, MemoryConstants::pageSize);
115- queueStorageBuffer = device->getMemoryManager ()->allocateGraphicsMemory ( queueStorageSize);
115+ queueStorageBuffer = device->getMemoryManager ()->allocateGraphicsMemoryWithProperties ({ queueStorageSize, GraphicsAllocation::AllocationType::UNDECIDED} );
116116 memset (queueStorageBuffer->getUnderlyingBuffer (), 0 , queueStorageBuffer->getUnderlyingBufferSize ());
117117
118118 auto &hwHelper = HwHelper::get (device->getHardwareInfo ().pPlatform ->eRenderCoreFamily );
119119 const size_t IDTSize = numberOfIDTables * interfaceDescriptorEntries * hwHelper.getInterfaceDescriptorDataSize ();
120120
121121 // Additional padding of PAGE_SIZE for PageFaults just after DSH to satisfy hw requirements
122- auto dshSize = (PARALLEL_SCHEDULER_HW_GROUPS + 2 ) * MAX_DSH_SIZE_PER_ENQUEUE * 8 + IDTSize + colorCalcStateSize + 4096 ;
122+ auto dshSize = (PARALLEL_SCHEDULER_HW_GROUPS + 2 ) * MAX_DSH_SIZE_PER_ENQUEUE * 8 + IDTSize + colorCalcStateSize + MemoryConstants::pageSize ;
123123 dshSize = alignUp (dshSize, MemoryConstants::pageSize);
124- dshBuffer = device->getMemoryManager ()->allocateGraphicsMemory ( dshSize);
124+ dshBuffer = device->getMemoryManager ()->allocateGraphicsMemoryWithProperties ({ dshSize, GraphicsAllocation::AllocationType::UNDECIDED} );
125125
126- debugQueue = device->getMemoryManager ()->allocateGraphicsMemory ( 4096 );
126+ debugQueue = device->getMemoryManager ()->allocateGraphicsMemoryWithProperties ({MemoryConstants::pageSize, GraphicsAllocation::AllocationType::UNDECIDED} );
127127 debugData = (DebugDataBuffer *)debugQueue->getUnderlyingBuffer ();
128128 memset (debugQueue->getUnderlyingBuffer (), 0 , debugQueue->getUnderlyingBufferSize ());
129129}
0 commit comments