venus: remove obsolete asserts for ANB image creation

Those have long been supported by vn_image_deferred_info_init because of
AHB support. For non-aliased ANB image, those are directly passed from
the platform swapchain create info as well. So we just need to drop the
obsolete asserts to make newer Android platform and ANGLE happy.

Cc: mesa-stable
(cherry picked from commit 091c4f43ff)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39969>
This commit is contained in:
Yiwei Zhang 2026-02-06 19:03:41 -08:00 committed by Dylan Baker
parent ef44834cb4
commit c78d272958
2 changed files with 1 additions and 7 deletions

View file

@ -1324,7 +1324,7 @@
"description": "venus: remove obsolete asserts for ANB image creation",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -258,12 +258,6 @@ vn_android_image_from_anb_internal(struct vn_device *dev,
struct vn_image *img = NULL;
VkResult result;
assert(!(create_info->flags & VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT));
assert(!vk_find_struct_const(create_info->pNext,
IMAGE_FORMAT_LIST_CREATE_INFO));
assert(!vk_find_struct_const(create_info->pNext,
IMAGE_STENCIL_USAGE_CREATE_INFO));
struct vn_android_image_builder builder;
result = vn_android_get_image_builder(dev, create_info, anb_info->handle,
&builder);