From fd2fa0fbc93792bd9c588c61b1ba37fe05893bba Mon Sep 17 00:00:00 2001 From: Valentine Burley Date: Wed, 22 Oct 2025 16:37:49 +0200 Subject: [PATCH] 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 Part-of: --- src/freedreno/vulkan/tu_descriptor_set.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/vulkan/tu_descriptor_set.cc b/src/freedreno/vulkan/tu_descriptor_set.cc index ebd7e323e1b..abe040d04ed 100644 --- a/src/freedreno/vulkan/tu_descriptor_set.cc +++ b/src/freedreno/vulkan/tu_descriptor_set.cc @@ -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) {