From 98eecece9bb4e82a964edfaf3840887e7adeee06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Wed, 16 Aug 2023 12:17:34 +0300 Subject: [PATCH] anv: remove assert, size is asserted in the runtime MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise gets hit on Android CTS tests. Reported-by: Chris Spencer Signed-off-by: Tapani Pälli Reviewed-by: Faith Ekstrand Part-of: --- src/intel/vulkan/anv_device.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 47be975bc23..e3b0a98009c 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -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);