mirror of https://git.ffmpeg.org/ffmpeg.git
ffv1enc_vulkan: restrict number of execution contexts to 1
This only leads to wasting memory in a single-threaded operation. Limit this to 1 for now and leave a comment.
This commit is contained in:
parent
b75dff0e20
commit
66093c5b94
|
@ -1433,7 +1433,7 @@ static av_cold int vulkan_encode_ffv1_init(AVCodecContext *avctx)
|
||||||
}
|
}
|
||||||
|
|
||||||
err = ff_vk_exec_pool_init(&fv->s, &fv->qf, &fv->exec_pool,
|
err = ff_vk_exec_pool_init(&fv->s, &fv->qf, &fv->exec_pool,
|
||||||
fv->qf.nb_queues*4,
|
1, /* Single-threaded for now */
|
||||||
0, 0, 0, NULL);
|
0, 0, 0, NULL);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
|
|
Loading…
Reference in New Issue