mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
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.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26682>
This commit is contained in:
parent
a26119e124
commit
2f79ed1831
1 changed files with 0 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue