mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
fix: Add missing registration of allocation from shared handle to smem
Related-To: NEO-12952 Fixes debug assert triggered in unregisterAllocation() for GPU_TIMESTAMP_DEVICE_BUFFER imported from shared handle:Y DEBUG_BREAK_IF(allocation->getUnderlyingBufferSize() > sysMemAllocsSize); Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3e5a6deb4b
commit
fa4fd26be2
@@ -3018,6 +3018,9 @@ DrmAllocation *DrmMemoryManager::createUSMHostAllocationFromSharedHandle(osHandl
|
||||
if (!reuseSharedAllocation) {
|
||||
registerSharedBoHandleAllocation(drmAllocation.get());
|
||||
}
|
||||
|
||||
this->registerSysMemAlloc(drmAllocation.get());
|
||||
|
||||
return drmAllocation.release();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user