History

vulkan_decode: fix counting for parallelism

ff_vk_exec_pool_init used to multiply the number by the number of queues, but that got changed, yet this use of the function was not updated.

Lynne committed 1 year ago

Commit a5e68601 parent 78c4d6c1 file · +1 −1Browse files

Unified · Split

libavcodec/vulkan_decode.c+1−1
@@ -1159,7 +1159,7 @@ int ff_vk_decode_init(AVCodecContext *avctx) · 1158 unmodified lines
11591159 /* Create decode exec context for this specific main thread.
11601160 * 2 async contexts per thread was experimentally determined to be optimal
11611161 * for a majority of streams. */
1162− err = ff_vk_exec_pool_init(s, &ctx->qf, &dec->exec_pool, 2,
1162+ err = ff_vk_exec_pool_init(s, &ctx->qf, &dec->exec_pool, 2*ctx->qf.nb_queues,
11631163 nb_q, VK_QUERY_TYPE_RESULT_STATUS_ONLY_KHR, 0,
11641164 profile);
11651165 if (err < 0)

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