History

vulkan: only apply shortcut for next context selection if selection has a submission

Lynne committed 1 year ago

Commit f582de81 parent 8ac49ae1 file · +2 −1Browse files

Unified · Split

libavutil/vulkan.c+2−1
@@ -494,7 +494,8 @@ FFVkExecContext *ff_vk_exec_get(FFVulkanContext *s, FFVkExecPool *pool) · 493 unmodified lines
494 494
495 /* Check if last submission has already finished.495 /* Check if last submission has already finished.
496 * If so, don't waste resources and reuse the same buffer. */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 return e;499 return e;
499 500
500 pool->idx = (pool->idx + 1) % pool->pool_size;501 pool->idx = (pool->idx + 1) % pool->pool_size;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t