anv: remove assert, size is asserted in the runtime

Otherwise gets hit on Android CTS tests.

Reported-by: Chris Spencer <spencercw@gmail.com>
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24722>
This commit is contained in:
Tapani Pälli 2023-08-16 12:17:34 +03:00 committed by Marge Bot
parent 2cbe85e6a9
commit 98eecece9b

View file

@ -3727,9 +3727,6 @@ VkResult anv_AllocateMemory(
assert(pAllocateInfo->sType == VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO);
/* The Vulkan 1.0.33 spec says "allocationSize must be greater than 0". */
assert(pAllocateInfo->allocationSize > 0);
VkDeviceSize aligned_alloc_size =
align64(pAllocateInfo->allocationSize, 4096);