diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-01-29 10:58:35 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-01-29 10:58:35 +0000 |
commit | 2f2dc1d8cfd26f13fd68a3a92c5b2f71ef661bc1 (patch) | |
tree | a84ff14e7db24b101c176a6e9e6975b2116bacb7 /lib/mesa/src/gallium/state_trackers/va/picture_vp9.c | |
parent | efa1b650091882867cb6201b028c657fb95365fa (diff) |
Import Mesa 18.3.2
Diffstat (limited to 'lib/mesa/src/gallium/state_trackers/va/picture_vp9.c')
-rw-r--r-- | lib/mesa/src/gallium/state_trackers/va/picture_vp9.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/mesa/src/gallium/state_trackers/va/picture_vp9.c b/lib/mesa/src/gallium/state_trackers/va/picture_vp9.c index b5aca9a51..c1ca54cd0 100644 --- a/lib/mesa/src/gallium/state_trackers/va/picture_vp9.c +++ b/lib/mesa/src/gallium/state_trackers/va/picture_vp9.c @@ -28,8 +28,6 @@ #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; @@ -81,11 +79,8 @@ void vlVaHandlePictureParameterBufferVP9(vlVaDriver *drv, vlVaContext *context, context->desc.vp9.picture_parameter.bit_depth = vp9->bit_depth; - for (i = 0 ; i < NUM_VP9_REFS ; i++) + for (i = 0 ; i < 8 ; 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) |