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