vulkan: do not wait for device idle when destroying buffers

This should be done explicitly.
This commit is contained in:
Lynne 2022-12-16 00:37:53 +01:00
parent 15de0af8f0
commit b18e20a4ee
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
1 changed files with 0 additions and 2 deletions

View File

@ -396,8 +396,6 @@ void ff_vk_free_buf(FFVulkanContext *s, FFVkBuffer *buf)
if (!buf || !s->hwctx)
return;
vk->DeviceWaitIdle(s->hwctx->act_dev);
if (buf->buf != VK_NULL_HANDLE)
vk->DestroyBuffer(s->hwctx->act_dev, buf->buf, s->hwctx->alloc);
if (buf->mem != VK_NULL_HANDLE)