1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

hwcontext_vulkan: tune execution pools

Having less in-flight resources is better in this case.
This commit is contained in:
Lynne 2023-06-07 04:01:44 +02:00
parent 24c4307b80
commit eff565dc19
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464

View File

@ -2315,17 +2315,17 @@ static int vulkan_frames_init(AVHWFramesContext *hwfc)
hwctx->unlock_frame = unlock_frame;
err = ff_vk_exec_pool_init(&p->vkctx, &p->compute_qf, &fp->compute_exec,
p->compute_qf.nb_queues*4, 0, 0, 0, NULL);
p->compute_qf.nb_queues, 0, 0, 0, NULL);
if (err)
return err;
err = ff_vk_exec_pool_init(&p->vkctx, &p->transfer_qf, &fp->upload_exec,
p->transfer_qf.nb_queues*4, 0, 0, 0, NULL);
p->transfer_qf.nb_queues*2, 0, 0, 0, NULL);
if (err)
return err;
err = ff_vk_exec_pool_init(&p->vkctx, &p->transfer_qf, &fp->download_exec,
p->transfer_qf.nb_queues*4, 0, 0, 0, NULL);
p->transfer_qf.nb_queues, 0, 0, 0, NULL);
if (err)
return err;