radv: remove an useless check when destroying descriptor sets

There is already an assertion.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37917>
This commit is contained in:
Samuel Pitoiset
2025-10-15 16:49:24 +02:00
committed by Marge Bot
parent 2b6c75423e
commit d29959f50d
+1 -1
View File
@@ -499,7 +499,7 @@ radv_descriptor_set_destroy(struct radv_device *device, struct radv_descriptor_p
vk_descriptor_set_layout_unref(&device->vk, &set->header.layout->vk);
if (free_bo && !pool->host_memory_base) {
if (free_bo) {
for (int i = 0; i < pool->entry_count; ++i) {
if (pool->entries[i].set == set) {
memmove(&pool->entries[i], &pool->entries[i + 1], sizeof(pool->entries[i]) * (pool->entry_count - i - 1));