mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 18:40:03 +01:00
vulkan: only apply shortcut for next context selection if selection has a submission
This commit is contained in:
@@ -494,7 +494,8 @@ FFVkExecContext *ff_vk_exec_get(FFVulkanContext *s, FFVkExecPool *pool)
|
|||||||
|
|
||||||
/* Check if last submission has already finished.
|
/* Check if last submission has already finished.
|
||||||
* If so, don't waste resources and reuse the same buffer. */
|
* If so, don't waste resources and reuse the same buffer. */
|
||||||
if (vk->GetFenceStatus(s->hwctx->act_dev, e->fence) == VK_SUCCESS)
|
if (e->had_submission &&
|
||||||
|
vk->GetFenceStatus(s->hwctx->act_dev, e->fence) == VK_SUCCESS)
|
||||||
return e;
|
return e;
|
||||||
|
|
||||||
pool->idx = (pool->idx + 1) % pool->pool_size;
|
pool->idx = (pool->idx + 1) % pool->pool_size;
|
||||||
|
|||||||
Reference in New Issue
Block a user