mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
radv/video: Disable H264 encode 8x8 transform when CABAC is disabled
VCN5 only supports it with CABAC enabled. Fixes:960f63596f("radv/video: Add VCN5 encode support") Reviewed-by: Ruijing Dong <ruijing.dong@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36881> (cherry picked from commit8ac9a9afee)
This commit is contained in:
parent
e048d6204c
commit
6750c5f70b
2 changed files with 3 additions and 2 deletions
|
|
@ -6214,7 +6214,7 @@
|
|||
"description": "radv/video: Disable H264 encode 8x8 transform when CABAC is disabled",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "960f63596fee40fdf395925534a7a918c08b1475",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -3047,7 +3047,8 @@ radv_video_patch_encode_session_parameters(struct radv_device *device, struct vk
|
|||
for (unsigned i = 0; i < params->h264_enc.h264_pps_count; i++) {
|
||||
params->h264_enc.h264_pps[i].base.pic_init_qp_minus26 = 0;
|
||||
params->h264_enc.h264_pps[i].base.pic_init_qs_minus26 = 0;
|
||||
if (pdev->enc_hw_ver < RADV_VIDEO_ENC_HW_5)
|
||||
if (pdev->enc_hw_ver < RADV_VIDEO_ENC_HW_5 ||
|
||||
!params->h264_enc.h264_pps[i].base.flags.entropy_coding_mode_flag)
|
||||
params->h264_enc.h264_pps[i].base.flags.transform_8x8_mode_flag = 0;
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue