aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2024-11-28 00:28:50 +0900
committerLynne <dev@lynne.ee>2024-11-28 01:29:15 +0900
commita5e6860a890b60ebd46595b2c355ae388f1f2cb4 (patch)
tree9d360311856e6f0c1354c608ee8f8dfa4b4231f1 /libavcodec
parent78c4d6c136e10222a0b0ddff639c836f295a9029 (diff)
downloadffmpeg-a5e6860a890b60ebd46595b2c355ae388f1f2cb4.tar.gz
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.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vulkan_decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vulkan_decode.c b/libavcodec/vulkan_decode.c
index 7d7295e05e..e55df7ad27 100644
--- a/libavcodec/vulkan_decode.c
+++ b/libavcodec/vulkan_decode.c
@@ -1159,7 +1159,7 @@ int ff_vk_decode_init(AVCodecContext *avctx)
/* Create decode exec context for this specific main thread.
* 2 async contexts per thread was experimentally determined to be optimal
* for a majority of streams. */
- err = ff_vk_exec_pool_init(s, &ctx->qf, &dec->exec_pool, 2,
+ err = ff_vk_exec_pool_init(s, &ctx->qf, &dec->exec_pool, 2*ctx->qf.nb_queues,
nb_q, VK_QUERY_TYPE_RESULT_STATUS_ONLY_KHR, 0,
profile);
if (err < 0)