radv: fix the maximum variable descriptor count with inline uniform blocks
It must not be larger than maxInlineUniformBlockSize. Fixes recent VKCTS dEQP-VK.api.maintenance3_check.support_count_inline_uniform_block*. Cc: mesa-stable Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36044>
This commit is contained in:
committed by
Marge Bot
parent
36879c4f99
commit
b7f4e344bc
@@ -351,7 +351,7 @@ radv_GetDescriptorSetLayoutSupport(VkDevice _device, const VkDescriptorSetLayout
|
||||
|
||||
uint64_t max_count = INT32_MAX;
|
||||
if (binding->descriptorType == VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK)
|
||||
max_count = INT32_MAX - size;
|
||||
max_count = MAX_INLINE_UNIFORM_BLOCK_SIZE - size;
|
||||
else if (descriptor_size)
|
||||
max_count = (INT32_MAX - size) / descriptor_size;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user