vulkan: do not wait for device idle when destroying buffers

This should be done explicitly.
pull/389/head
Lynne 2 years ago
parent 15de0af8f0
commit b18e20a4ee
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
  1. 2
      libavutil/vulkan.c

@ -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)

Loading…
Cancel
Save