Unified · Split
| @@ -494,7 +494,8 @@ FFVkExecContext *ff_vk_exec_get(FFVulkanContext *s, FFVkExecPool *pool) · 493 unmodified lines | ||
| 494 | 494 | |
| 495 | 495 | /* Check if last submission has already finished. |
| 496 | 496 | * If so, don't waste resources and reuse the same buffer. */ |
| 497 | − if (vk->GetFenceStatus(s->hwctx->act_dev, e->fence) == VK_SUCCESS) | |
| 497 | + if (e->had_submission && | |
| 498 | + vk->GetFenceStatus(s->hwctx->act_dev, e->fence) == VK_SUCCESS) | |
| 498 | 499 | return e; |
| 499 | 500 | |
| 500 | 501 | pool->idx = (pool->idx + 1) % pool->pool_size; |