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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user