radeonsi/vcn: Don't force balance encode preset with sao on VCN5

This is only needed for VCN4 and older.

Reviewed-by: Benjamin Cheng <benjamin.cheng@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40766>
This commit is contained in:
David Rosca 2026-04-02 18:10:00 +02:00 committed by Marge Bot
parent e8bce7ec47
commit c9a8dcd63c

View file

@ -32,6 +32,7 @@ static void radeon_vcn_enc_quality_modes(struct radeon_encoder *enc,
p->preset_mode = RENCODE_PRESET_MODE_QUALITY;
if (sscreen->info.vcn_ip_version >= VCN_2_0_0 &&
sscreen->info.vcn_ip_version < VCN_5_0_0 &&
p->preset_mode == RENCODE_PRESET_MODE_SPEED &&
!enc->enc_pic.hevc_deblock.disable_sao &&
u_reduce_video_profile(enc->base.profile) == PIPE_VIDEO_FORMAT_HEVC)