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
Bu işleme şunda yer alıyor:
David Yat Sin committed 2023-07-21 15:17:01 -04:00
1 ebeveyn 3ebe1fdff9
işleme e65edb35fc
3 files changed
+50 -1

No files matched your search

+6 -1
Dosyayı Görüntüle
@@ -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;
/**