venus/android: clean up leftovers from common AHB helpers adoption

This is a follow up for:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36388.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36581>
This commit is contained in:
Yiwei Zhang
2025-08-05 18:57:20 +00:00
committed by Marge Bot
parent c66d4a329b
commit 6775873e9e
2 changed files with 1 additions and 28 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ vn_android_gralloc_get_dma_buf_fd(const native_handle_t *handle)
return handle->data[0];
}
const VkFormat *
static const VkFormat *
vn_android_format_to_view_formats(VkFormat format, uint32_t *out_count)
{
/* For AHB image prop query and creation, venus overrides the tiling to
-27
View File
@@ -30,13 +30,6 @@ struct vn_device_memory *
vn_android_get_wsi_memory_from_bind_info(
struct vn_device *dev, const VkBindImageMemoryInfo *bind_info);
const VkFormat *
vn_android_format_to_view_formats(VkFormat format, uint32_t *out_count);
uint64_t
vn_android_get_ahb_usage(const VkImageUsageFlags usage,
const VkImageCreateFlags flags);
VkResult
vn_android_device_import_ahb(struct vn_device *dev,
struct vn_device_memory *mem,
@@ -62,20 +55,6 @@ vn_android_get_wsi_memory_from_bind_info(
return NULL;
}
static inline const VkFormat *
vn_android_format_to_view_formats(UNUSED VkFormat format,
UNUSED uint32_t *out_count)
{
return NULL;
}
static inline uint64_t
vn_android_get_ahb_usage(UNUSED const VkImageUsageFlags usage,
UNUSED const VkImageCreateFlags flags)
{
return 0;
}
static inline VkResult
vn_android_device_import_ahb(
UNUSED struct vn_device *dev,
@@ -85,12 +64,6 @@ vn_android_device_import_ahb(
return VK_ERROR_OUT_OF_HOST_MEMORY;
}
static inline uint32_t
vn_android_get_ahb_buffer_memory_type_bits(UNUSED struct vn_device *dev)
{
return 0;
}
#endif /* DETECT_OS_ANDROID */
#endif /* VN_ANDROID_H */