radeonsi/vcn: Disable H264 encode 8x8 transform when CABAC is disabled

VCN5 only supports it with CABAC enabled.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13029
Fixes: e509139f61 ("radeonsi/vcn: Add support for H264 8x8 transform on VCN5")
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36881>
This commit is contained in:
David Rosca 2025-08-20 15:51:57 +02:00 committed by Marge Bot
parent a2e7fbc351
commit 2e400fc099

View file

@ -301,6 +301,7 @@ static void radeon_vcn_enc_h264_get_spec_misc_param(struct radeon_encoder *enc,
pic->pic_ctrl.weighted_bipred_idc : 0;
enc->enc_pic.spec_misc.transform_8x8_mode =
sscreen->info.vcn_ip_version >= VCN_5_0_0 &&
enc->enc_pic.spec_misc.cabac_enable &&
pic->pic_ctrl.transform_8x8_mode_flag;
enc->enc_pic.spec_misc.level_idc = pic->seq.level_idc;
}