Add support for hsaKmtRegisterGraphicsHandleToNodes
Change-Id: I6fd7154dea78188480d5cb89ac237bad572356c4
[ROCm/ROCR-Runtime commit: 61ec3df2f9]
Este cometimento está contido em:
@@ -393,6 +393,20 @@ hsaKmtRegisterMemoryToNodes(
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
Registers with KFD a graphics buffer and returns graphics metadata
|
||||
*/
|
||||
|
||||
HSAKMT_STATUS
|
||||
HSAKMTAPI
|
||||
hsaKmtRegisterGraphicsHandleToNodes(
|
||||
HSAuint64 GraphicsResourceHandle, //IN
|
||||
HsaGraphicsResourceInfo *GraphicsResourceInfo, //OUT
|
||||
HSAuint64 NumberOfNodes, //IN
|
||||
HSAuint32* NodeArray //IN
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
Unregisters with KFD a memory buffer
|
||||
*/
|
||||
|
||||
@@ -498,6 +498,13 @@ typedef struct _HsaMemMapFlags
|
||||
};
|
||||
} HsaMemMapFlags;
|
||||
|
||||
typedef struct _HsaGraphicsResourceInfo {
|
||||
void *MemoryAddress; // For use in hsaKmtMapMemoryToGPU(Nodes)
|
||||
HSAuint64 SizeInBytes; // Buffer size
|
||||
const void *Metadata; // Pointer to metadata owned by Thunk
|
||||
HSAuint32 MetadataSizeInBytes; // Size of metadata
|
||||
HSAuint32 Reserved; // Reserved for future use, will be set to 0
|
||||
} HsaGraphicsResourceInfo;
|
||||
|
||||
typedef enum _HSA_CACHING_TYPE
|
||||
{
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador