mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 17:00:59 +08:00
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:
committed by
Compute-Runtime-Automation
parent
d99d5963df
commit
84dec57f0a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user