mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-15 15:38:22 +02:00
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:
parent
17e25b4983
commit
fd2fa0fbc9
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue