venus: vn_ResetDescriptorPool to reset mutable type states

Fixes: de5879447b ("Track bitset when create descriptor pool")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Chad Versace <chadversary@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18555>
This commit is contained in:
Yiwei Zhang
2022-09-12 05:39:17 +00:00
committed by Marge Bot
parent a49f3069f4
commit d8809b5edc
+3
View File
@@ -593,6 +593,9 @@ vn_descriptor_pool_reset_descriptors(struct vn_descriptor_pool *pool)
return;
memset(&pool->used, 0, sizeof(pool->used));
for (uint32_t i = 0; i < pool->mutable_states_count; i++)
pool->mutable_states[i].used = 0;
}
VkResult