Mesa (main): frontends/va/enc: hardcode h265 encoder ref pic list size
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Dec 8 03:41:42 UTC 2021
Module: Mesa
Branch: main
Commit: 31b033eec2f48c44f0011131b99e19e88eba4281
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=31b033eec2f48c44f0011131b99e19e88eba4281
Author: Thong Thai <thong.thai at amd.com>
Date: Mon Nov 22 11:47:43 2021 -0500
frontends/va/enc: hardcode h265 encoder ref pic list size
Set the size of the ref pic list0 for the h265 encoder to 1.
Signed-off-by: Thong Thai <thong.thai at amd.com>
Reviewed-by: Boyuan Zhang <boyuan.zhang at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13915>
---
src/gallium/frontends/va/picture_hevc_enc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/frontends/va/picture_hevc_enc.c b/src/gallium/frontends/va/picture_hevc_enc.c
index e266f1835dd..f5f044aca21 100644
--- a/src/gallium/frontends/va/picture_hevc_enc.c
+++ b/src/gallium/frontends/va/picture_hevc_enc.c
@@ -128,6 +128,7 @@ vlVaHandleVAEncSequenceParameterBufferTypeHEVC(vlVaDriver *drv, vlVaContext *con
VAEncSequenceParameterBufferHEVC *h265 = (VAEncSequenceParameterBufferHEVC *)buf->data;
if (!context->decoder) {
+ context->templat.max_references = 1;
context->templat.level = h265->general_level_idc;
context->decoder = drv->pipe->create_video_codec(drv->pipe, &context->templat);
More information about the mesa-commit
mailing list