radeonsi/vcn: update session_info from vcn3 and up.

session_info needs to be updated to vcn4 and up, since
it is safe to change it from vcn3 to cover all the needed
VCNs, thus this change came from VCN3.

Reviewed-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Signed-off-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26940>
This commit is contained in:
Ruijing Dong 2024-01-08 15:39:16 -05:00 committed by Marge Bot
parent 39616c13e0
commit 9d1e69ca45

View file

@ -19,6 +19,15 @@
#define RENCODE_FW_INTERFACE_MAJOR_VERSION 1
#define RENCODE_FW_INTERFACE_MINOR_VERSION 20
static void radeon_enc_session_info(struct radeon_encoder *enc)
{
RADEON_ENC_BEGIN(enc->cmd.session_info);
RADEON_ENC_CS(enc->enc_pic.session_info.interface_version);
RADEON_ENC_READWRITE(enc->si->res->buf, enc->si->res->domains, 0x0);
RADEON_ENC_CS(0); /* padding 0, not used for vcn3 */
RADEON_ENC_END();
}
static void radeon_enc_spec_misc(struct radeon_encoder *enc)
{
enc->enc_pic.spec_misc.constrained_intra_pred_flag = 0;
@ -521,6 +530,7 @@ void radeon_enc_3_0_init(struct radeon_encoder *enc)
{
radeon_enc_2_0_init(enc);
enc->session_info = radeon_enc_session_info;
enc->session_init = radeon_enc_session_init;
enc->ctx = radeon_enc_ctx;
enc->quality_params = radeon_enc_quality_params;