[3/n] Internal 4GB allocator.

-Do not create allocator 32 bit with every DRM memory manager
-This is not needed for apps that do not use this.
-Add allocation of allocator to setForce32BitAddressing

Change-Id: I836b60f6b74eecf678cc9d56851797d0db176107
This commit is contained in:
Mrozek, Michal
2018-02-28 09:27:38 +01:00
committed by sys_ocldev
parent cb37fb97a3
commit 0b6acb4d7a
5 changed files with 45 additions and 3 deletions

View File

@@ -43,7 +43,6 @@ namespace OCLRT {
DrmMemoryManager::DrmMemoryManager(Drm *drm, gemCloseWorkerMode mode, bool forcePinAllowed) : MemoryManager(false), drm(drm), pinBB(nullptr) {
MemoryManager::virtualPaddingAvailable = true;
allocator32Bit = std::unique_ptr<Allocator32bit>(new Allocator32bit);
if (mode != gemCloseWorkerMode::gemCloseWorkerInactive) {
gemCloseWorker.reset(new DrmGemCloseWorker(*this));
}