[4/n] Internal 4GB allocator

-Allocate internal 4GB allocator when DRM memory manager is created.

Change-Id: I072e81de219415a6c02ab1fd1b41b6a8338ee67c
This commit is contained in:
Mrozek, Michal
2018-02-28 09:56:54 +01:00
committed by sys_ocldev
parent c1683691c0
commit 0e3f2bf361
3 changed files with 9 additions and 1 deletions

View File

@@ -60,6 +60,7 @@ DrmMemoryManager::DrmMemoryManager(Drm *drm, gemCloseWorkerMode mode, bool force
pinBB->isAllocated = true;
}
}
internal32bitAllocator.reset(new Allocator32bit);
}
DrmMemoryManager::~DrmMemoryManager() {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Intel Corporation
* Copyright (c) 2017 - 2018, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -90,5 +90,6 @@ class DrmMemoryManager : public MemoryManager {
decltype(&close) closeFunction = close;
std::vector<BufferObject *> sharingBufferObjects;
std::recursive_mutex mtx;
std::unique_ptr<Allocator32bit> internal32bitAllocator;
};
} // namespace OCLRT