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.
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -1159,7 +1159,7 @@ int ff_vk_decode_init(AVCodecContext *avctx) · 1158 unmodified lines | ||
| 1159 | 1159 | /* Create decode exec context for this specific main thread. |
| 1160 | 1160 | * 2 async contexts per thread was experimentally determined to be optimal |
| 1161 | 1161 | * 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, | |
| 1163 | 1163 | nb_q, VK_QUERY_TYPE_RESULT_STATUS_ONLY_KHR, 0, |
| 1164 | 1164 | profile); |
| 1165 | 1165 | if (err < 0) |