Module: Mesa
Branch: main
Commit: 2f79ed183145009d9379f75f24d6025c94e71c36
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2f79ed183145009d9379f75f24d6025c94e71c36

Author: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Date:   Thu Dec 14 09:29:42 2023 +0100

radv: stop asserting some image create info fields

Vulkan Validation Layers already check that and these assertions never
caught anything.

Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26682>

---

 src/amd/vulkan/radv_image.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index ec9f1364b2f..fcc96b65025 100644
--- a/src/amd/vulkan/radv_image.c
+++ b/src/amd/vulkan/radv_image.c
@@ -1919,13 +1919,6 @@ radv_image_create(VkDevice _device, const struct 
radv_image_create_info *create_
 
    const size_t image_struct_size = sizeof(*image) + sizeof(struct 
radv_image_plane) * plane_count;
 
-   radv_assert(pCreateInfo->mipLevels > 0);
-   radv_assert(pCreateInfo->arrayLayers > 0);
-   radv_assert(pCreateInfo->samples > 0);
-   radv_assert(pCreateInfo->extent.width > 0);
-   radv_assert(pCreateInfo->extent.height > 0);
-   radv_assert(pCreateInfo->extent.depth > 0);
-
    image = vk_zalloc2(&device->vk.alloc, alloc, image_struct_size, 8, 
VK_SYSTEM_ALLOCATION_SCOPE_OBJECT);
    if (!image)
       return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);

Reply via email to