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:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user