mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
pvr: Fix segfault in pvr_CreatePipelineLayout when layout has zero bindings
Signed-off-by: Sarah Walker <sarah.walker@imgtec.com> Reviewed-by: Frank Binns <frank.binns@imgtec.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19407>
This commit is contained in:
parent
4d63beaae6
commit
525c1dd95b
1 changed files with 3 additions and 0 deletions
|
|
@ -893,6 +893,9 @@ VkResult pvr_CreatePipelineLayout(VkDevice _device,
|
|||
layout->descriptor_offsets[set_num][stage][type] =
|
||||
descriptor_counts[type];
|
||||
|
||||
if (!layout->set_layout[set_num]->descriptor_count)
|
||||
continue;
|
||||
|
||||
descriptor_count = layout->set_layout[set_num]
|
||||
->per_stage_descriptor_count[stage][type];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue