Skip to content
Snippets Groups Projects
Commit c55008e5 authored by Leo Liu's avatar Leo Liu Committed by Dylan Baker
Browse files

st/va/vp9: set max reference as default of VP9 reference number


If there is no information about number of render targets

Signed-off-by: default avatarLeo Liu <leo.liu@amd.com>
Reviewed-by: default avatarBoyuan Zhang <boyuan.zhang@amd.com>
Cc: 19.0 <mesa-stable@lists.freedesktop.org>
(cherry picked from commit a0a52a03)
parent ab585817
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,8 @@
#include "vl/vl_vlc.h"
#include "va_private.h"
#define NUM_VP9_REFS 8
void vlVaHandlePictureParameterBufferVP9(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf)
{
VADecPictureParameterBufferVP9 *vp9 = buf->data;
......@@ -79,8 +81,11 @@ void vlVaHandlePictureParameterBufferVP9(vlVaDriver *drv, vlVaContext *context,
context->desc.vp9.picture_parameter.bit_depth = vp9->bit_depth;
for (i = 0 ; i < 8 ; i++)
for (i = 0 ; i < NUM_VP9_REFS ; i++)
vlVaGetReferenceFrame(drv, vp9->reference_frames[i], &context->desc.vp9.ref[i]);
if (!context->decoder && !context->templat.max_references)
context->templat.max_references = NUM_VP9_REFS;
}
void vlVaHandleSliceParameterBufferVP9(vlVaContext *context, vlVaBuffer *buf)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment