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:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user