radeonsi/vcn: Disable 2pass encode for VCN 5.0.
VCN 5.0 will not support 2pass encoding. Backport-to: 24.3 Signed-off-by: Yinjie Yao <yinjie.yao@amd.com> Reviewed-by: Ruijing Dong <ruijing.dong@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32336>
This commit is contained in:
@@ -24,6 +24,7 @@ static void radeon_vcn_enc_quality_modes(struct radeon_encoder *enc,
|
||||
struct pipe_enc_quality_modes *in)
|
||||
{
|
||||
rvcn_enc_quality_modes_t *p = &enc->enc_pic.quality_modes;
|
||||
struct si_screen *sscreen = (struct si_screen *)enc->screen;
|
||||
|
||||
p->preset_mode = in->preset_mode > RENCODE_PRESET_MODE_HIGH_QUALITY
|
||||
? RENCODE_PRESET_MODE_HIGH_QUALITY
|
||||
@@ -39,6 +40,13 @@ static void radeon_vcn_enc_quality_modes(struct radeon_encoder *enc,
|
||||
if (enc->enc_pic.rc_session_init.rate_control_method == RENCODE_RATE_CONTROL_METHOD_QUALITY_VBR)
|
||||
p->pre_encode_mode = RENCODE_PREENCODE_MODE_4X;
|
||||
|
||||
/* Disabling 2pass encoding for VCN 5.0
|
||||
* This is a temporary limitation only for VCN 5.0 due to HW,
|
||||
* once verified in future VCN 5.X versions, it will be enabled again.
|
||||
*/
|
||||
if (sscreen->info.vcn_ip_version >= VCN_5_0_0)
|
||||
p->pre_encode_mode = RENCODE_PREENCODE_MODE_NONE;
|
||||
|
||||
p->vbaq_mode = in->vbaq_mode ? RENCODE_VBAQ_AUTO : RENCODE_VBAQ_NONE;
|
||||
|
||||
if (enc->enc_pic.rc_session_init.rate_control_method == RENCODE_RATE_CONTROL_METHOD_NONE)
|
||||
|
Reference in New Issue
Block a user