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:
Faith Ekstrand
2023-10-10 11:03:17 -05:00
parent 9a51185d45
commit 1c4d5135a6
+3
View File
@@ -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);