libhsakmt: query/use render node fds that libdrm uses.

Query render node fds that libdrm uses for current process and
use them at Thunk if available.

v2: avoid naming conflict with amdgpu_device_get_fd from amdgpu.h

Signed-off-by: Xiaogang Chen<Xiaogang.Chen@amd.com>
Change-Id: Id7288c03730f4a4c9c3644e37ca4725fec71a471


[ROCm/ROCR-Runtime commit: ac1db60fc2]
This commit is contained in:
Xiaogang Chen
2022-11-15 12:18:27 -06:00
committed by Xiaogang Chen
parent 6800fbec43
commit dd8954e83e
6 changed files with 95 additions and 9 deletions
+10
View File
@@ -602,6 +602,16 @@ hsaKmtUnmapGraphicHandle(
HSAuint64 SizeInBytes //IN
);
/**
* Get an AMDGPU device handle for a GPU node
*/
HSAKMT_STATUS
HSAKMTAPI
hsaKmtGetAMDGPUDeviceHandle(
HSAuint32 NodeId, //IN
HsaAMDGPUDeviceHandle *DeviceHandle //OUT
);
/**
Allocate GWS resource for a queue
*/