mirror of
https://github.com/elwrcl/intel-hard-graphics.git
synced 2026-10-31 19:08:03 +03:00
fix pic heights
This commit is contained in:
1 parent
0496c5dbc9
commit
824423d998
1 file changed
+6
-2
@@ -212,10 +212,14 @@ anv_h264_decode_video(struct anv_cmd_buffer *cmd_buffer,
|
||||
}
|
||||
#endif
|
||||
|
||||
uint32_t pic_height = sps->pic_height_in_map_units_minus1 + 1;
|
||||
if (!sps->flags.frame_mbs_only_flag)
|
||||
pic_height *= 2;
|
||||
|
||||
anv_batch_emit(&cmd_buffer->batch, GENX(MFX_AVC_IMG_STATE), avc_img) {
|
||||
avc_img.FrameWidth = sps->pic_width_in_mbs_minus1;
|
||||
avc_img.FrameHeight = sps->pic_height_in_map_units_minus1;
|
||||
avc_img.FrameSize = (sps->pic_width_in_mbs_minus1 + 1) * (sps->pic_height_in_map_units_minus1 + 1);
|
||||
avc_img.FrameHeight = pic_height - 1;
|
||||
avc_img.FrameSize = (sps->pic_width_in_mbs_minus1 + 1) * pic_height;
|
||||
|
||||
if (!h264_pic_info->pStdPictureInfo->flags.field_pic_flag)
|
||||
avc_img.ImageStructure = FramePicture;
|
||||
|
||||
Reference in new issue
Block a user