mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 12:11:31 +08:00
Pass number of os contexts to Graphics Allocation constructor
Mark unshareable allocations Change-Id: Ie745dc639d8c6b01e2275d29ee1fb4c6343df2bc Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
2f15ca0508
commit
352450adaa
@@ -29,11 +29,15 @@ MemoryManager::MemoryManager(bool enable64kbpages, bool enableLocalMemory,
|
||||
ExecutionEnvironment &executionEnvironment) : allocator32Bit(nullptr), enable64kbpages(enable64kbpages),
|
||||
localMemorySupported(enableLocalMemory),
|
||||
executionEnvironment(executionEnvironment),
|
||||
hostPtrManager(std::make_unique<HostPtrManager>()){};
|
||||
hostPtrManager(std::make_unique<HostPtrManager>()) {
|
||||
registeredOsContexts.resize(1);
|
||||
};
|
||||
|
||||
MemoryManager::~MemoryManager() {
|
||||
for (auto osContext : registeredOsContexts) {
|
||||
osContext->decRefInternal();
|
||||
if (osContext) {
|
||||
osContext->decRefInternal();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user