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:
committed by
Xiaogang Chen
parent
6800fbec43
commit
dd8954e83e
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user