mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
fix: change emplace() on map to insert()
- fixes problem with some compilers Related-To: GSD-10365, GSD-10367, GSD-10441 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3a6ce6dca9
commit
1110410caf
@@ -1127,7 +1127,7 @@ void DrmMemoryManager::registerSharedBoHandleAllocation(DrmAllocation *drmAlloca
|
||||
|
||||
auto foundHandleWrapperIt = sharedBoHandles.find(std::pair<int, uint32_t>(bo->getHandle(), rootDeviceIndex));
|
||||
if (foundHandleWrapperIt == std::end(sharedBoHandles)) {
|
||||
sharedBoHandles.emplace(std::make_pair(bo->getHandle(), rootDeviceIndex), bo->acquireWeakOwnershipOfBoHandle());
|
||||
sharedBoHandles.insert({std::make_pair(bo->getHandle(), rootDeviceIndex), bo->acquireWeakOwnershipOfBoHandle()});
|
||||
} else {
|
||||
bo->markAsSharedBoHandle();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user