anv/video: fix chroma qp to be a integer value.

This is just a cleanup to the genxml

Fixes: 98c58a16ef ("anv: add initial video decode support for h264.")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21433>
This commit is contained in:
Dave Airlie
2023-02-20 13:38:45 +10:00
committed by Marge Bot
parent c28c995645
commit f85b2cbe33
8 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -249,8 +249,8 @@ anv_h264_decode_video(struct anv_cmd_buffer *cmd_buffer,
avc_img.WeightedBiPredictionIDC = pps->weighted_bipred_idc;
avc_img.WeightedPredictionEnable = pps->flags.weighted_pred_flag;
avc_img.FirstChromaQPOffset = pps->chroma_qp_index_offset & 0x1f;
avc_img.SecondChromaQPOffset = pps->second_chroma_qp_index_offset & 0x1f;
avc_img.FirstChromaQPOffset = pps->chroma_qp_index_offset;
avc_img.SecondChromaQPOffset = pps->second_chroma_qp_index_offset;
avc_img.FieldPicture = h264_pic_info->pStdPictureInfo->flags.field_pic_flag;
avc_img.MBAFFMode = (sps->flags.mb_adaptive_frame_field_flag &&
!h264_pic_info->pStdPictureInfo->flags.field_pic_flag);