mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-18 04:18:23 +02:00
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>
(cherry picked from commit 64ea1175cc)
This commit is contained in:
parent
b5b7b0957b
commit
26429556c5
2 changed files with 9 additions and 1 deletions
|
|
@ -4,7 +4,7 @@
|
|||
"description": "radeonsi/vcn: Disable 2pass encode for VCN 5.0.",
|
||||
"nominated": true,
|
||||
"nomination_type": 4,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue