tu: Fix maxVariableDescriptorCount with inline uniform blocks

It must not be larger than maxInlineUniformBlockSize.

Fixes VKCTS 1.4.4.0's
dEQP-VK.api.maintenance3_check.support_count_inline_uniform_block*.

Cc: mesa-stable

Signed-off-by: Valentine Burley <valentine.burley@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38002>
This commit is contained in:
Valentine Burley 2025-10-22 16:37:49 +02:00 committed by Marge Bot
parent 17e25b4983
commit fd2fa0fbc9

View file

@ -377,7 +377,7 @@ tu_GetDescriptorSetLayoutSupport(
uint64_t max_count = MAX_SET_SIZE;
unsigned descriptor_count = binding->descriptorCount;
if (binding->descriptorType == VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK) {
max_count = MAX_SET_SIZE - size;
max_count = MAX_INLINE_UBO_RANGE - size;
descriptor_count = descriptor_sz;
descriptor_sz = 1;
} else if (descriptor_sz) {