summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_android.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/intel/vulkan/anv_android.h')
-rw-r--r--src/intel/vulkan/anv_android.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_android.h b/src/intel/vulkan/anv_android.h
index 8d748cecc39..01f0e856291 100644
--- a/src/intel/vulkan/anv_android.h
+++ b/src/intel/vulkan/anv_android.h
@@ -28,6 +28,8 @@
#include <vulkan/vulkan_android.h>
#include <vulkan/vk_android_native_buffer.h>
+struct anv_device_memory;
+
VkResult anv_image_from_gralloc(VkDevice device_h,
const VkImageCreateInfo *base_info,
const VkNativeBufferANDROID *gralloc_info,
@@ -36,4 +38,12 @@ VkResult anv_image_from_gralloc(VkDevice device_h,
uint64_t anv_ahw_usage_from_vk_usage(const VkImageCreateFlags vk_create,
const VkImageUsageFlags vk_usage);
+
+VkResult anv_import_ahw_memory(VkDevice device_h,
+ struct anv_device_memory *mem,
+ const VkImportAndroidHardwareBufferInfoANDROID *info);
+
+VkResult anv_create_ahw_memory(VkDevice device_h,
+ struct anv_device_memory *mem,
+ const VkMemoryAllocateInfo *pAllocateInfo);
#endif /* ANV_ANDROID_H */