v3dv: remove assert that poolSizeCount must be larger than 0
From the Vulkan spec: "If poolSizeCount is not 0, pPoolSizes must be a valid pointer to an array of poolSizeCount valid VkDescriptorPoolSize structures" So 0 is actually allowed and there is a CTS to check it is handled gracefully. Fixes: dEQP-VK.api.descriptor_pool.zero_pool_size_count Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Reviewed-by: Juan A. Suarez <jasuarez@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17648>
This commit is contained in:
parent
19ef41b181
commit
d2d2fdf934
|
@ -364,7 +364,6 @@ spec@!opengl 2.0@max-samplers border,Fail
|
|||
dEQP-VK.pipeline.monolithic.color_write_enable_maxa.cwe_after_bind.attachments4_more0,Crash
|
||||
|
||||
# New in CTS 1.3.3.0
|
||||
dEQP-VK.api.descriptor_pool.zero_pool_size_count,Crash
|
||||
dEQP-VK.image.subresource_layout.2d.1_level.a1r5g5b5_unorm_pack16_offset,Fail
|
||||
dEQP-VK.image.subresource_layout.2d.1_level.a2b10g10r10_uint_pack32_offset,Fail
|
||||
dEQP-VK.image.subresource_layout.2d.1_level.a2b10g10r10_unorm_pack32_offset,Fail
|
||||
|
|
|
@ -421,7 +421,6 @@ v3dv_CreateDescriptorPool(VkDevice _device,
|
|||
vk_find_struct_const(pCreateInfo->pNext,
|
||||
DESCRIPTOR_POOL_INLINE_UNIFORM_BLOCK_CREATE_INFO);
|
||||
|
||||
assert(pCreateInfo->poolSizeCount > 0);
|
||||
for (unsigned i = 0; i < pCreateInfo->poolSizeCount; ++i) {
|
||||
/* Verify supported descriptor type */
|
||||
switch(pCreateInfo->pPoolSizes[i].type) {
|
||||
|
|
Loading…
Reference in New Issue