From 31b033eec2f48c44f0011131b99e19e88eba4281 Mon Sep 17 00:00:00 2001 From: Thong Thai Date: Mon, 22 Nov 2021 11:47:43 -0500 Subject: [PATCH] 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 Reviewed-by: Boyuan Zhang Part-of: --- 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);