radeonsi/vcn: Fix AV1 bidir compound encode with order_hint disabled
Cc: mesa-stable Reviewed-by: Benjamin Cheng <benjamin.cheng@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37911>
This commit is contained in:
@@ -498,6 +498,7 @@ typedef struct rvcn_enc_hevc_encode_params_s {
|
||||
typedef struct rvcn_enc_av1_encode_params_s {
|
||||
uint32_t ref_frames[RENCODE_AV1_REFS_PER_FRAME];
|
||||
uint32_t lsm_reference_frame_index[2];
|
||||
uint32_t cur_order_hint;
|
||||
} rvcn_enc_av1_encode_params_t;
|
||||
|
||||
typedef struct rvcn_enc_h264_deblocking_filter_s {
|
||||
|
||||
@@ -1029,6 +1029,7 @@ static void radeon_vcn_enc_av1_get_param(struct radeon_encoder *enc,
|
||||
enc_pic->force_integer_mv = pic->force_integer_mv;
|
||||
enc_pic->disable_screen_content_tools = !pic->allow_screen_content_tools;
|
||||
enc_pic->is_obu_frame = pic->enable_frame_obu;
|
||||
enc_pic->av1_enc_params.cur_order_hint = pic->order_hint;
|
||||
|
||||
enc_pic->enc_params.reference_picture_index =
|
||||
pic->ref_list0[0] == PIPE_H2645_LIST_REF_INVALID_ENTRY ?
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include "radeon_vcn_enc.h"
|
||||
|
||||
#define RENCODE_FW_INTERFACE_MAJOR_VERSION 1
|
||||
#define RENCODE_FW_INTERFACE_MINOR_VERSION 3
|
||||
#define RENCODE_FW_INTERFACE_MINOR_VERSION 10
|
||||
|
||||
#define RENCODE_AV1_MIN_TILE_WIDTH 256
|
||||
|
||||
@@ -431,6 +431,7 @@ static void radeon_enc_encode_params_av1(struct radeon_encoder *enc)
|
||||
RADEON_ENC_CS(enc->enc_pic.av1_enc_params.ref_frames[i]);
|
||||
RADEON_ENC_CS(enc->enc_pic.av1_enc_params.lsm_reference_frame_index[0]);
|
||||
RADEON_ENC_CS(enc->enc_pic.av1_enc_params.lsm_reference_frame_index[1]);
|
||||
RADEON_ENC_CS(enc->enc_pic.av1_enc_params.cur_order_hint);
|
||||
RADEON_ENC_END();
|
||||
}
|
||||
|
||||
@@ -942,6 +943,7 @@ static void radeon_enc_session_init(struct radeon_encoder *enc)
|
||||
RADEON_ENC_CS(enc->enc_pic.session_init.pre_encode_chroma_enabled);
|
||||
RADEON_ENC_CS(enc->enc_pic.session_init.slice_output_enabled);
|
||||
RADEON_ENC_CS(enc->enc_pic.session_init.display_remote);
|
||||
RADEON_ENC_CS(0);
|
||||
RADEON_ENC_END();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user