[FFmpeg-cvslog] hwcontext_vulkan: tune execution pools
Lynne
git at videolan.org
Thu Jun 8 00:59:55 EEST 2023
ffmpeg | branch: master | Lynne <dev at lynne.ee> | Wed Jun 7 04:01:44 2023 +0200| [eff565dc19c9c54763cf6f882d14b8ee1a94b190] | committer: Lynne
hwcontext_vulkan: tune execution pools
Having less in-flight resources is better in this case.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eff565dc19c9c54763cf6f882d14b8ee1a94b190
---
libavutil/hwcontext_vulkan.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index ec084d94d7..1132a61390 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list