1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

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

View File

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