radeonsi/vcn: Get rid of not_referenced

Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35072>
This commit is contained in:
David Rosca
2025-05-20 14:20:26 +02:00
committed by Marge Bot
parent 47f4d3e701
commit f17ea8e901
3 changed files with 1 additions and 3 deletions
@@ -509,7 +509,6 @@ static void radeon_vcn_enc_h264_get_param(struct radeon_encoder *enc,
enc->enc_pic.enc_params.reconstructed_picture_index = pic->dpb_curr_pic;
enc->enc_pic.h264_enc_params.is_reference = !pic->not_referenced;
enc->enc_pic.h264_enc_params.is_long_term = pic->is_ltr;
enc->enc_pic.not_referenced = pic->not_referenced;
if (pic->ref_list0[0] != PIPE_H2645_LIST_REF_INVALID_ENTRY) {
uint8_t ref_l0 = pic->ref_list0[0];
@@ -107,7 +107,6 @@ struct radeon_enc_pic {
unsigned total_coloc_bytes;
rvcn_enc_quality_modes_t quality_modes;
bool not_referenced;
bool use_rc_per_pic_ex;
bool av1_tile_splitting_legacy_flag;
@@ -668,7 +668,7 @@ static void radeon_enc_slice_header(struct radeon_encoder *enc)
}
}
if (!enc->enc_pic.not_referenced) {
if (enc->enc_pic.h264_enc_params.is_reference) {
if (enc->enc_pic.picture_type == PIPE_H2645_ENC_PICTURE_TYPE_IDR) {
radeon_bs_code_fixed_bits(&bs, slice->no_output_of_prior_pics_flag, 1);
radeon_bs_code_fixed_bits(&bs, slice->long_term_reference_flag, 1);