mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 21:30:09 +01:00
turnip: add an assertion for max descriptor set count.
Signed-off-by: Hyunjun Ko <zzoon@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16624>
This commit is contained in:
parent
53445284a4
commit
f2635ca47b
1 changed files with 2 additions and 0 deletions
|
|
@ -455,6 +455,8 @@ tu_CreatePipelineLayout(VkDevice _device,
|
|||
for (uint32_t set = 0; set < pCreateInfo->setLayoutCount; set++) {
|
||||
TU_FROM_HANDLE(tu_descriptor_set_layout, set_layout,
|
||||
pCreateInfo->pSetLayouts[set]);
|
||||
|
||||
assert(set < MAX_SETS);
|
||||
layout->set[set].layout = set_layout;
|
||||
layout->set[set].dynamic_offset_start = dynamic_offset_size;
|
||||
tu_descriptor_set_layout_ref(set_layout);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue