vulkan/android: make vk_ahb_probe_format private to android runtime

...and drop duplicate docs.

Acked-by: Rob Clark <robclark@freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36151>
This commit is contained in:
Yiwei Zhang
2025-07-15 23:30:57 +00:00
committed by Marge Bot
parent e733ac9314
commit 7934c9ab78
2 changed files with 1 additions and 18 deletions
+1 -6
View File
@@ -635,12 +635,7 @@ vk_image_usage_to_ahb_usage(const VkImageCreateFlags vk_create,
return ahb_usage;
}
/* Probe gralloc implementation to test whether it can allocate a buffer
* for the given format and usage. Vk drivers must not advertise support
* for AHB backed VkImage's if the gralloc implementation is not able to
* perform the allocation.
*/
bool
static bool
vk_ahb_probe_format(VkFormat vk_format,
VkImageCreateFlags vk_create,
VkImageUsageFlags vk_usage)
-12
View File
@@ -92,10 +92,6 @@ uint32_t vk_image_format_to_ahb_format(VkFormat vk_format);
uint64_t vk_image_usage_to_ahb_usage(const VkImageCreateFlags vk_create,
const VkImageUsageFlags vk_usage);
bool vk_ahb_probe_format(VkFormat vk_format,
VkImageCreateFlags vk_create,
VkImageUsageFlags vk_usage);
struct AHardwareBuffer *vk_alloc_ahardware_buffer(
const VkMemoryAllocateInfo *pAllocateInfo);
@@ -141,14 +137,6 @@ vk_image_usage_to_ahb_usage(const VkImageCreateFlags vk_create,
return 0;
}
static inline bool
vk_ahb_probe_format(VkFormat vk_format,
VkImageCreateFlags vk_create,
VkImageUsageFlags vk_usage)
{
return false;
}
static inline struct AHardwareBuffer *
vk_alloc_ahardware_buffer(const VkMemoryAllocateInfo *pAllocateInfo)
{