libhsakmt: add NodeId at HsaGraphicsResourceInfo.
Return GPU NodeId that exported the DMA buffer from amdgpu graphic driver at fmm_register_graphics_handle. Signed-off-by: Xiaogang Chen<Xiaogang.Chen@amd.com> Change-Id: Iaeccce6e6d0b7e27f10b15ed89d1b5310d03d44b
此提交包含在:
1 父節點
989c6c617c
當前提交
9bebb276be
2 file changed
+2
-2
No files matched your search
@@ -3590,7 +3590,7 @@ HSAKMT_STATUS fmm_register_graphics_handle(HSAuint64 GraphicsResourceHandle,
|
||||
GraphicsResourceInfo->SizeInBytes = infoArgs.size;
|
||||
GraphicsResourceInfo->Metadata = (void *)(unsigned long)infoArgs.metadata_ptr;
|
||||
GraphicsResourceInfo->MetadataSizeInBytes = infoArgs.metadata_size;
|
||||
GraphicsResourceInfo->Reserved = 0;
|
||||
gpuid_to_nodeid(infoArgs.gpu_id, &GraphicsResourceInfo->NodeId);
|
||||
|
||||
return HSAKMT_STATUS_SUCCESS;
|
||||
|
||||
|
||||
Reference in new issue
封鎖使用者