nvk: Reset descriptor pool allocator when all sets are destroyed
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25653>
This commit is contained in:
@@ -351,6 +351,9 @@ nvk_descriptor_set_destroy(struct nvk_device *dev,
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (pool->entry_count == 0)
|
||||
pool->current_offset = 0;
|
||||
}
|
||||
|
||||
vk_descriptor_set_layout_unref(&dev->vk, &set->layout->vk);
|
||||
|
||||
Reference in New Issue
Block a user