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
Αυτή η υποβολή περιλαμβάνεται σε:
υποβλήθηκε από
Xiaogang Chen
γονέας
9bebb276be
υποβολή
ac1db60fc2
@@ -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
|
||||
*/
|
||||
|
||||
@@ -1409,6 +1409,8 @@ typedef enum _HSA_SVM_UNMAP_TRIGGERS {
|
||||
#define HSA_SMI_EVENT_MASK_FROM_INDEX(i) (1ULL << ((i) - 1))
|
||||
#define HSA_SMI_EVENT_MSG_SIZE 96
|
||||
|
||||
typedef void *HsaAMDGPUDeviceHandle;
|
||||
|
||||
#pragma pack(pop, hsakmttypes_h)
|
||||
|
||||
|
||||
|
||||
Αναφορά σε νέο ζήτημα
Block a user