Change the signature of MemoryManager::createGraphicsAllocation.

Change-Id: Ia82235ff2831fd5b3436d488a5946bb49d63ce91
This commit is contained in:
Piotr Fusik
2019-02-25 14:11:34 +01:00
committed by sys_ocldev
parent 0cf71414e2
commit 378bd28bab
17 changed files with 56 additions and 42 deletions

View File

@@ -43,12 +43,11 @@ class DrmMemoryManager : public MemoryManager {
// drm/i915 ioctl wrappers
uint32_t unreference(BufferObject *bo, bool synchronousDestroy = false);
DrmAllocation *createGraphicsAllocation(OsHandleStorage &handleStorage, size_t hostPtrSize, const void *hostPtr) override;
bool isValidateHostMemoryEnabled() const {
return validateHostPtrMemory;
}
DrmGemCloseWorker *peekGemCloseWorker() { return this->gemCloseWorker.get(); }
DrmGemCloseWorker *peekGemCloseWorker() const { return this->gemCloseWorker.get(); }
protected:
BufferObject *findAndReferenceSharedBufferObject(int boHandle);
@@ -60,7 +59,9 @@ class DrmMemoryManager : public MemoryManager {
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;
DrmAllocation *allocateGraphicsMemoryWithAlignment(const AllocationData &allocationData) override;
DrmAllocation *allocateGraphicsMemoryWithHostPtr(const AllocationData &allocationData) override;
DrmAllocation *allocateGraphicsMemory64kb(AllocationData allocationData) override;