@@ -47,16 +47,14 @@ GraphicsAllocation *OsAgnosticMemoryManager::allocateGraphicsMemoryWithAlignment
4747 if (fakeBigAllocations && allocationData.size > bigAllocation) {
4848 memoryAllocation = createMemoryAllocation (
4949 allocationData.type , nullptr , (void *)dummyAddress, static_cast <uint64_t >(dummyAddress), allocationData.size , counter,
50- MemoryPool::System4KBPages, allocationData.flags .multiOsContextCapable , allocationData.flags .uncacheable ,
51- allocationData.flags .flushL3 , false );
50+ MemoryPool::System4KBPages, allocationData.flags .uncacheable , allocationData.flags .flushL3 , false );
5251 counter++;
5352 return memoryAllocation;
5453 }
5554 auto ptr = allocateSystemMemory (sizeAligned, allocationData.alignment ? alignUp (allocationData.alignment , MemoryConstants::pageSize) : MemoryConstants::pageSize);
5655 if (ptr != nullptr ) {
5756 memoryAllocation = createMemoryAllocation (allocationData.type , ptr, ptr, reinterpret_cast <uint64_t >(ptr), allocationData.size ,
58- counter, MemoryPool::System4KBPages, allocationData.flags .multiOsContextCapable ,
59- allocationData.flags .uncacheable , allocationData.flags .flushL3 , false );
57+ counter, MemoryPool::System4KBPages, allocationData.flags .uncacheable , allocationData.flags .flushL3 , false );
6058
6159 if (allocationData.type == GraphicsAllocation::AllocationType::SVM_CPU) {
6260 // add 2MB padding in case mapPtr is not 2MB aligned
@@ -82,7 +80,7 @@ GraphicsAllocation *OsAgnosticMemoryManager::allocateGraphicsMemoryForNonSvmHost
8280
8381 auto memoryAllocation = createMemoryAllocation (allocationData.type , nullptr , const_cast <void *>(allocationData.hostPtr ),
8482 reinterpret_cast <uint64_t >(alignedPtr), allocationData.size , counter,
85- MemoryPool::System4KBPages, false , false , allocationData.flags .flushL3 , false );
83+ MemoryPool::System4KBPages, false , allocationData.flags .flushL3 , false );
8684
8785 memoryAllocation->setAllocationOffset (offsetInPage);
8886
@@ -112,7 +110,7 @@ GraphicsAllocation *OsAgnosticMemoryManager::allocate32BitGraphicsMemoryImpl(con
112110 uint64_t offset = static_cast <uint64_t >(reinterpret_cast <uintptr_t >(allocationData.hostPtr ) & MemoryConstants::pageMask);
113111 MemoryAllocation *memAlloc = new MemoryAllocation (
114112 allocationData.type , nullptr , const_cast <void *>(allocationData.hostPtr ), GmmHelper::canonize (gpuVirtualAddress + offset),
115- allocationData.size , counter, MemoryPool::System4KBPagesWith32BitGpuAddressing, false , false , false );
113+ allocationData.size , counter, MemoryPool::System4KBPagesWith32BitGpuAddressing, false , false );
116114
117115 memAlloc->set32BitAllocation (true );
118116 memAlloc->setGpuBaseAddress (GmmHelper::canonize (gfxPartition->getHeapBase (heap)));
@@ -137,7 +135,7 @@ GraphicsAllocation *OsAgnosticMemoryManager::allocate32BitGraphicsMemoryImpl(con
137135 MemoryAllocation *memoryAllocation = nullptr ;
138136 if (ptrAlloc != nullptr ) {
139137 memoryAllocation = new MemoryAllocation (allocationData.type , ptrAlloc, ptrAlloc, GmmHelper::canonize (gpuAddress),
140- allocationData.size , counter, MemoryPool::System4KBPagesWith32BitGpuAddressing, false ,
138+ allocationData.size , counter, MemoryPool::System4KBPagesWith32BitGpuAddressing,
141139 false , allocationData.flags .flushL3 );
142140
143141 memoryAllocation->set32BitAllocation (true );
@@ -150,7 +148,7 @@ GraphicsAllocation *OsAgnosticMemoryManager::allocate32BitGraphicsMemoryImpl(con
150148
151149GraphicsAllocation *OsAgnosticMemoryManager::createGraphicsAllocationFromSharedHandle (osHandle handle, const AllocationProperties &properties, bool requireSpecificBitness) {
152150 auto graphicsAllocation = createMemoryAllocation (properties.allocationType , nullptr , reinterpret_cast <void *>(1 ), 1 ,
153- 4096u , static_cast <uint64_t >(handle), MemoryPool::SystemCpuInaccessible, false ,
151+ 4096u , static_cast <uint64_t >(handle), MemoryPool::SystemCpuInaccessible,
154152 false , false , requireSpecificBitness);
155153 graphicsAllocation->setSharedHandle (handle);
156154 graphicsAllocation->set32BitAllocation (requireSpecificBitness);
@@ -230,7 +228,7 @@ uint64_t OsAgnosticMemoryManager::getSystemSharedMemory() {
230228GraphicsAllocation *OsAgnosticMemoryManager::createGraphicsAllocation (OsHandleStorage &handleStorage, const AllocationData &allocationData) {
231229 auto allocation = createMemoryAllocation (allocationData.type , nullptr , const_cast <void *>(allocationData.hostPtr ),
232230 reinterpret_cast <uint64_t >(allocationData.hostPtr ), allocationData.size , counter++,
233- MemoryPool::System4KBPages, false , false , false , false );
231+ MemoryPool::System4KBPages, false , false , false );
234232
235233 allocation->fragmentsStorage = handleStorage;
236234 return allocation;
@@ -282,7 +280,7 @@ GraphicsAllocation *OsAgnosticMemoryManager::allocateGraphicsMemoryForImageImpl(
282280 auto ptr = allocateSystemMemory (alignUp (allocationData.imgInfo ->size , MemoryConstants::pageSize), MemoryConstants::pageSize);
283281 if (ptr != nullptr ) {
284282 alloc = createMemoryAllocation (allocationData.type , ptr, ptr, reinterpret_cast <uint64_t >(ptr), allocationData.imgInfo ->size ,
285- counter, MemoryPool::SystemCpuInaccessible, false , allocationData.flags .uncacheable , allocationData.flags .flushL3 , false );
283+ counter, MemoryPool::SystemCpuInaccessible, allocationData.flags .uncacheable , allocationData.flags .flushL3 , false );
286284 counter++;
287285 }
288286
@@ -304,11 +302,11 @@ void OsAgnosticMemoryManager::releaseReservedCpuAddressRange(void *reserved, siz
304302
305303MemoryAllocation *OsAgnosticMemoryManager::createMemoryAllocation (GraphicsAllocation::AllocationType allocationType, void *driverAllocatedCpuPointer,
306304 void *pMem, uint64_t gpuAddress, size_t memSize, uint64_t count,
307- MemoryPool::Type pool, bool multiOsContextCapable, bool uncacheable,
305+ MemoryPool::Type pool, bool uncacheable,
308306 bool flushL3Required, bool requireSpecificBitness) {
309307 if (!isLimitedRange ()) {
310308 return new MemoryAllocation (allocationType, driverAllocatedCpuPointer, pMem, gpuAddress, memSize,
311- count, pool, multiOsContextCapable, uncacheable, flushL3Required);
309+ count, pool, uncacheable, flushL3Required);
312310 }
313311
314312 size_t alignedSize = alignSizeWholePage (pMem, memSize);
@@ -318,7 +316,7 @@ MemoryAllocation *OsAgnosticMemoryManager::createMemoryAllocation(GraphicsAlloca
318316 uint64_t limitedGpuAddress = gfxPartition->heapAllocate (heap, alignedSize);
319317
320318 auto memoryAllocation = new MemoryAllocation (allocationType, driverAllocatedCpuPointer, pMem, limitedGpuAddress, memSize,
321- count, pool, multiOsContextCapable, uncacheable, flushL3Required);
319+ count, pool, uncacheable, flushL3Required);
322320
323321 if (heap == HeapIndex::HEAP_EXTERNAL) {
324322 memoryAllocation->setGpuBaseAddress (GmmHelper::canonize (gfxPartition->getHeapBase (heap)));
0 commit comments