lavapipe: fix one more descriptor set reference issue
I thought I'd fixed this already, must have gotten lost in a rebase.
fixes
dEQP-VK.pipeline.pipeline_library.graphics_library.misc.bind_null_descriptor_set.1010
Fixes: 20902d1ed6
("lavapipe: fix descriptor set layout reference counting in layout merge")
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20662>
This commit is contained in:
@@ -709,7 +709,8 @@ merge_layouts(struct vk_device *device, struct lvp_pipeline *dst, struct lvp_pip
|
||||
for (unsigned i = 0; i < src->vk.set_count; i++) {
|
||||
if (!dst->layout->vk.set_layouts[i]) {
|
||||
dst->layout->vk.set_layouts[i] = src->vk.set_layouts[i];
|
||||
vk_descriptor_set_layout_ref(src->vk.set_layouts[i]);
|
||||
if (dst->layout->vk.set_layouts[i])
|
||||
vk_descriptor_set_layout_ref(src->vk.set_layouts[i]);
|
||||
}
|
||||
}
|
||||
dst->layout->vk.set_count = MAX2(dst->layout->vk.set_count,
|
||||
|
Reference in New Issue
Block a user