Add check/query for virtual memory API support
Checks whether version of libdrm library installed on current system supports the amdgpu_device_get_fd API. This API is required to support the virtual memory API functions. The amdgpu_device_get_fd function was introduced in libdrm-2.4.109. Using a runtime check test instead of static dependency to be able to support previous APIs on older versions of libdrm. Add query for virtual memory API support. This is part of patch series for Virtual Memory API. Change-Id: Iec831eb24b5d1689c392e50ae86f4d52d4870ac4
This commit is contained in:
1 bovenliggende
3ebe1fdff9
commit
e65edb35fc
3 files changed
+50
-1
No files matched your search
@@ -504,7 +504,12 @@ typedef enum {
|
||||
* Returns true if DMABUF APIs are supported by the driver. The type of
|
||||
* this attribute is bool.
|
||||
*/
|
||||
HSA_AMD_SYSTEM_INFO_DMABUF_SUPPORTED = 0x204
|
||||
HSA_AMD_SYSTEM_INFO_DMABUF_SUPPORTED = 0x204,
|
||||
/**
|
||||
* Returns true if Virtual Memory APIs are supported by the driver. The type of
|
||||
* this attribute is bool.
|
||||
*/
|
||||
HSA_AMD_SYSTEM_INFO_VIRTUAL_MEM_API_SUPPORTED = 0x205,
|
||||
} hsa_system_info_t;
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user