Add support for hsaKmtRegisterGraphicsHandleToNodes

Change-Id: I6fd7154dea78188480d5cb89ac237bad572356c4
This commit is contained in:
Felix Kuehling
2016-03-05 01:12:40 -05:00
parent b1393f8224
commit 61ec3df2f9
6 ha cambiato i file con 208 aggiunte e 20 eliminazioni
+14
Vedi File
@@ -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
*/
+7
Vedi File
@@ -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
{