gallium va: VaHandlePictureParameterBufferH264 fill out new pipe params
authorSil Vilerino <sivileri@microsoft.com>
Mon, 2 May 2022 16:50:23 +0000 (09:50 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 17 May 2022 21:02:25 +0000 (21:02 +0000)
MinLumaBiPredSize8x8, pic_init_qs_minus26, chroma_format_idc,
bit_depth_chroma, bit_depth_chroma_minus8

Reviewed-by: Leo Liu <leo.liu@amd.com>
Acked-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16286>

src/gallium/frontends/va/picture_h264.c

index 3a84926..04241a4 100755 (executable)
@@ -75,10 +75,10 @@ void vlVaHandlePictureParameterBufferH264(vlVaDriver *drv, vlVaContext *context,
    /*ReferenceFrames[16]*/
    /*picture_width_in_mbs_minus1*/
    /*picture_height_in_mbs_minus1*/
-   /*bit_depth_luma_minus8*/
-   /*bit_depth_chroma_minus8*/
+   context->desc.h264.pps->sps->bit_depth_luma_minus8 = h264->bit_depth_luma_minus8;
+   context->desc.h264.pps->sps->bit_depth_chroma_minus8 = h264->bit_depth_chroma_minus8;
    context->desc.h264.num_ref_frames = h264->num_ref_frames;
-   /*chroma_format_idc*/
+   context->desc.h264.pps->sps->chroma_format_idc = h264->seq_fields.bits.chroma_format_idc;
    /*residual_colour_transform_flag*/
    /*gaps_in_frame_num_value_allowed_flag*/
    context->desc.h264.pps->sps->frame_mbs_only_flag =
@@ -87,7 +87,8 @@ void vlVaHandlePictureParameterBufferH264(vlVaDriver *drv, vlVaContext *context,
       h264->seq_fields.bits.mb_adaptive_frame_field_flag;
    context->desc.h264.pps->sps->direct_8x8_inference_flag =
       h264->seq_fields.bits.direct_8x8_inference_flag;
-   /*MinLumaBiPredSize8x8*/
+   context->desc.h264.pps->sps->MinLumaBiPredSize8x8 =
+      h264->seq_fields.bits.MinLumaBiPredSize8x8;
    context->desc.h264.pps->sps->log2_max_frame_num_minus4 =
       h264->seq_fields.bits.log2_max_frame_num_minus4;
    context->desc.h264.pps->sps->pic_order_cnt_type =
@@ -101,7 +102,8 @@ void vlVaHandlePictureParameterBufferH264(vlVaDriver *drv, vlVaContext *context,
    /*slice_group_change_rate_minus1*/
    context->desc.h264.pps->pic_init_qp_minus26 =
       h264->pic_init_qp_minus26;
-   /*pic_init_qs_minus26*/
+   context->desc.h264.pps->pic_init_qs_minus26 =
+      h264->pic_init_qs_minus26;
    context->desc.h264.pps->chroma_qp_index_offset =
       h264->chroma_qp_index_offset;
    context->desc.h264.pps->second_chroma_qp_index_offset =