diff options
author | Bas Nieuwenhuizen <[email protected]> | 2019-07-10 14:45:01 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2019-10-10 17:02:34 +0000 |
commit | 83a012b60316c80ab8f4f882338cc797b9bd04ec (patch) | |
tree | 58deb0e215eaf54cb416306fb66fb4bccbf30ad4 /src/amd/vulkan/radv_private.h | |
parent | adad61239c43f4a06b8a97bf9c31b7d2a8148d6b (diff) |
radv/android: Add android hardware buffer import/export.
Support does not include images yet.
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r-- | src/amd/vulkan/radv_private.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index f0a5fc19604..51b7d7953ef 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -76,6 +76,7 @@ typedef uint32_t xcb_window_t; #include <vulkan/vulkan.h> #include <vulkan/vulkan_intel.h> +#include <vulkan/vulkan_android.h> #include <vulkan/vk_icd.h> #include <vulkan/vk_android_native_buffer.h> @@ -1927,6 +1928,16 @@ radv_image_from_gralloc(VkDevice device_h, uint64_t radv_ahb_usage_from_vk_usage(const VkImageCreateFlags vk_create, const VkImageUsageFlags vk_usage); +VkResult +radv_import_ahb_memory(struct radv_device *device, + struct radv_device_memory *mem, + unsigned priority, + const VkImportAndroidHardwareBufferInfoANDROID *info); +VkResult +radv_create_ahb_memory(struct radv_device *device, + struct radv_device_memory *mem, + unsigned priority, + const VkMemoryAllocateInfo *pAllocateInfo); VkFormat radv_select_android_external_format(const void *next, VkFormat default_format); |