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:
parent
24c4307b80
commit
eff565dc19
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user