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
Cette révision appartient à :
Xiaogang Chen
2022-11-15 12:18:27 -06:00
révisé par Xiaogang Chen
Parent 9bebb276be
révision ac1db60fc2
6 fichiers modifiés avec 95 ajouts et 9 suppressions
+10
Voir le fichier
@@ -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
*/