mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Use GfxPartition for GPU address range allocations
[3/n] - DrmMemoryManager Related-To: NEO-2877 Change-Id: If7aa5f7e0d774f0c8b1c01cf6b14ee22374987d3 Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
0b3caec515
commit
10799ea0ed
@@ -9,7 +9,6 @@
|
||||
#include "runtime/memory_manager/memory_manager.h"
|
||||
#include "runtime/os_interface/linux/drm_allocation.h"
|
||||
#include "runtime/os_interface/linux/drm_buffer_object.h"
|
||||
#include "runtime/os_interface/linux/drm_limited_range.h"
|
||||
#include "runtime/os_interface/linux/drm_neo.h"
|
||||
|
||||
#include "drm_gem_close_worker.h"
|
||||
@@ -68,7 +67,6 @@ class DrmMemoryManager : public MemoryManager {
|
||||
bool setDomainCpu(GraphicsAllocation &graphicsAllocation, bool writeEnable);
|
||||
uint64_t acquireGpuRange(size_t &size, StorageAllocatorType &allocType, bool requireSpecificBitness);
|
||||
void releaseGpuRange(void *address, size_t unmapSize, StorageAllocatorType allocatorType);
|
||||
void initInternalRangeAllocator(size_t range);
|
||||
void emitPinningRequest(BufferObject *bo, const AllocationData &allocationData) const;
|
||||
|
||||
DrmAllocation *createGraphicsAllocation(OsHandleStorage &handleStorage, const AllocationData &allocationData) override;
|
||||
@@ -95,7 +93,5 @@ class DrmMemoryManager : public MemoryManager {
|
||||
decltype(&close) closeFunction = close;
|
||||
std::vector<BufferObject *> sharingBufferObjects;
|
||||
std::mutex mtx;
|
||||
std::unique_ptr<Allocator32bit> internal32bitAllocator;
|
||||
std::unique_ptr<AllocatorLimitedRange> limitedGpuAddressRangeAllocator;
|
||||
};
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user