fix: Add debug message for BO from shared-handle

Related-To: LOCI-3771

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
Jaime Arteaga
2023-01-13 09:24:57 +00:00
committed by Compute-Runtime-Automation
parent d99d5963df
commit 84dec57f0a
3 changed files with 105 additions and 0 deletions

View File

@@ -873,6 +873,13 @@ GraphicsAllocation *DrmMemoryManager::createGraphicsAllocationFromSharedHandle(o
bo->setUnmapSize(size);
bo->setRootDeviceIndex(properties.rootDeviceIndex);
printDebugString(DebugManager.flags.PrintBOCreateDestroyResult.get(), stdout,
"Created BO-%d range: %llx - %llx, size: %lld from PRIME_FD_TO_HANDLE\n",
bo->peekHandle(),
bo->peekAddress(),
ptrOffset(bo->peekAddress(), bo->peekSize()),
bo->peekSize());
pushSharedBufferObject(bo);
}
@@ -2067,6 +2074,13 @@ DrmAllocation *DrmMemoryManager::createUSMHostAllocationFromSharedHandle(osHandl
bo->setUnmapSize(size);
bo->setRootDeviceIndex(properties.rootDeviceIndex);
printDebugString(DebugManager.flags.PrintBOCreateDestroyResult.get(), stdout,
"Created BO-%d range: %llx - %llx, size: %lld from PRIME_FD_TO_HANDLE\n",
bo->peekHandle(),
bo->peekAddress(),
ptrOffset(bo->peekAddress(), bo->peekSize()),
bo->peekSize());
pushSharedBufferObject(bo);
DrmAllocation *drmAllocation = nullptr;