mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 12:20:15 +01:00
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:
parent
36879c4f99
commit
b7f4e344bc
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue