mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 19:30:11 +01:00
radeonsi/vcn: Add support for QVBR rate control mode for VCN5
Bump up firmware version number to enable this mode. Signed-off-by: Yinjie Yao <yinjie.yao@amd.com> Reviewed-by: Ruijing Dong <ruijing.dong@amd.com> Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31063>
This commit is contained in:
parent
ed4dc4261e
commit
cce14abc5a
2 changed files with 6 additions and 2 deletions
|
|
@ -12,8 +12,8 @@
|
|||
#include "si_pipe.h"
|
||||
#include "radeon_vcn_enc.h"
|
||||
|
||||
#define RENCODE_FW_INTERFACE_MAJOR_VERSION 0
|
||||
#define RENCODE_FW_INTERFACE_MINOR_VERSION 0
|
||||
#define RENCODE_FW_INTERFACE_MAJOR_VERSION 1
|
||||
#define RENCODE_FW_INTERFACE_MINOR_VERSION 3
|
||||
|
||||
#define RENCODE_REC_SWIZZLE_MODE_256B_D_VCN5 1
|
||||
|
||||
|
|
@ -365,6 +365,7 @@ static void radeon_enc_rc_per_pic(struct radeon_encoder *enc)
|
|||
RADEON_ENC_CS(enc->enc_pic.rc_per_pic.enabled_filler_data);
|
||||
RADEON_ENC_CS(enc->enc_pic.rc_per_pic.skip_frame_enable);
|
||||
RADEON_ENC_CS(enc->enc_pic.rc_per_pic.enforce_hrd);
|
||||
RADEON_ENC_CS(enc->enc_pic.rc_per_pic.qvbr_quality_level);
|
||||
RADEON_ENC_END();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -893,6 +893,9 @@ static int si_get_video_param(struct pipe_screen *screen, enum pipe_video_profil
|
|||
sscreen->info.vcn_ip_version < VCN_5_0_0)
|
||||
return sscreen->info.vcn_enc_minor_version >= 15;
|
||||
|
||||
if (sscreen->info.vcn_ip_version >= VCN_5_0_0)
|
||||
return sscreen->info.vcn_enc_minor_version >= 3;
|
||||
|
||||
return 0;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue