vulkanh265dec: fix reference set

`StdVideoDecodeH265PictureInfo.flags.IsReference` refers to section 3.132 ITU-T
H.265 specification:

reference picture: A picture that is a short-term reference picture or a
long-term reference picture.

`GstH265Picture.ref` doesn't reflect this, but we need to query the NAL type of
the processed slice.

This patch fixes the validation layer error
`VUID-vkCmdBeginVideoCodingKHR-slotIndex-07239` while using the NVIDIA driver.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6901>
This commit is contained in:
Víctor Manuel Jáquez Leal 2024-05-22 14:50:11 +02:00 committed by GStreamer Marge Bot
parent 84aecab150
commit 4a88137b2f

View file

@ -1425,7 +1425,7 @@ gst_vulkan_h265_decoder_start_picture (GstH265Decoder * decoder,
.flags = {
.IrapPicFlag = GST_H265_IS_NAL_TYPE_IRAP (slice->nalu.type),
.IdrPicFlag = GST_H265_IS_NAL_TYPE_IDR (slice->nalu.type),
.IsReference = picture->ref,
.IsReference = picture->RapPicFlag ? 1 : slice->nalu.type & 1,
.short_term_ref_pic_set_sps_flag =
slice->header.short_term_ref_pic_set_sps_flag,
},