mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
[4/n] Internal 4GB allocator
-Allocate internal 4GB allocator when DRM memory manager is created. Change-Id: I072e81de219415a6c02ab1fd1b41b6a8338ee67c
This commit is contained in:
committed by
sys_ocldev
parent
c1683691c0
commit
0e3f2bf361
@@ -60,6 +60,7 @@ DrmMemoryManager::DrmMemoryManager(Drm *drm, gemCloseWorkerMode mode, bool force
|
||||
pinBB->isAllocated = true;
|
||||
}
|
||||
}
|
||||
internal32bitAllocator.reset(new Allocator32bit);
|
||||
}
|
||||
|
||||
DrmMemoryManager::~DrmMemoryManager() {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user