frontends/vdpau: Get AV1 decode subsampling_x/y

The VDPAU frontend requires similar changes as in the VAAPI frontend.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12337

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
Reviewed-by: David Rosca <david.rosca@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32752>
This commit is contained in:
nyanmisaka
2024-12-20 23:58:03 +08:00
committed by Marge Bot
parent 9a4f5b739e
commit 8a5ec60442
+4
View File
@@ -653,6 +653,10 @@ vlVdpDecoderRenderAV1(struct pipe_av1_picture_desc *picture,
picture_info->enable_order_hint;
picture->picture_parameter.seq_info_fields.film_grain_params_present =
picture_info->enable_fgs;
picture->picture_parameter.seq_info_fields.subsampling_x =
picture_info->subsampling_x;
picture->picture_parameter.seq_info_fields.subsampling_y =
picture_info->subsampling_y;
picture->picture_parameter.current_frame_id = target;
picture->picture_parameter.frame_width = picture_info->width;