mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
vk: Allocate layout->count number of descriptors
layout->count is the number of descriptors the application requested. layout->total is the number of entries we need across all stages.
This commit is contained in:
parent
a3fd136509
commit
a77229c979
1 changed files with 1 additions and 1 deletions
|
|
@ -1502,7 +1502,7 @@ VkResult VKAPI vkAllocDescriptorSets(
|
|||
|
||||
for (uint32_t i = 0; i < count; i++) {
|
||||
layout = (struct anv_descriptor_set_layout *) pSetLayouts[i];
|
||||
size = sizeof(*set) + layout->total * sizeof(set->descriptors[0]);
|
||||
size = sizeof(*set) + layout->count * sizeof(set->descriptors[0]);
|
||||
set = anv_device_alloc(device, size, 8,
|
||||
VK_SYSTEM_ALLOC_TYPE_API_OBJECT);
|
||||
if (!set) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue