aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/va/picture_h264.c
diff options
context:
space:
mode:
authorJulien Isorce <[email protected]>2016-01-05 15:02:47 +0000
committerJulien Isorce <[email protected]>2016-01-05 15:02:47 +0000
commit851e7e12aa628d6781b5a3af2f2fc16ee73f435f (patch)
tree01832e84dd849481a44cc20ba79cbf7fd33fe72b /src/gallium/state_trackers/va/picture_h264.c
parent14f21f53d50ecd6e2803b2326a90e93aceacfe24 (diff)
st/va: count number of slices
The counter was not set but used by the nouveau driver. It is required otherwise visual output is garbage. Signed-off-by: Julien Isorce <[email protected]> Reviewed-by: Christian Koenig <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/va/picture_h264.c')
-rw-r--r--src/gallium/state_trackers/va/picture_h264.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/va/picture_h264.c b/src/gallium/state_trackers/va/picture_h264.c
index acbfe5d61ed..883a94a2b52 100644
--- a/src/gallium/state_trackers/va/picture_h264.c
+++ b/src/gallium/state_trackers/va/picture_h264.c
@@ -48,6 +48,7 @@ void vlVaHandlePictureParameterBufferH264(vlVaDriver *drv, vlVaContext *context,
unsigned i;
assert(buf->size >= sizeof(VAPictureParameterBufferH264) && buf->num_elements == 1);
+ context->desc.h264.slice_count = 0;
/*CurrPic*/
context->desc.h264.field_order_cnt[0] = h264->CurrPic.TopFieldOrderCnt;
context->desc.h264.field_order_cnt[1] = h264->CurrPic.BottomFieldOrderCnt;
@@ -162,6 +163,7 @@ void vlVaHandleSliceParameterBufferH264(vlVaContext *context, vlVaBuffer *buf)
VASliceParameterBufferH264 *h264 = buf->data;
assert(buf->size >= sizeof(VASliceParameterBufferH264) && buf->num_elements == 1);
+ context->desc.h264.slice_count += buf->num_elements;
context->desc.h264.num_ref_idx_l0_active_minus1 =
h264->num_ref_idx_l0_active_minus1;
context->desc.h264.num_ref_idx_l1_active_minus1 =