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:
Slawomir Milczarek
2025-08-02 22:00:39 +00:00
committed by Compute-Runtime-Automation
parent 3e5a6deb4b
commit fa4fd26be2
2 changed files with 43 additions and 0 deletions

View File

@@ -3018,6 +3018,9 @@ DrmAllocation *DrmMemoryManager::createUSMHostAllocationFromSharedHandle(osHandl
if (!reuseSharedAllocation) {
registerSharedBoHandleAllocation(drmAllocation.get());
}
this->registerSysMemAlloc(drmAllocation.get());
return drmAllocation.release();
}