radeonsi/vcn: Fix 10bit HEVC VPS general_profile_compatibility_flags

Cc: mesa-stable
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28945>
(cherry picked from commit b144f50190)
This commit is contained in:
David Rosca 2024-04-16 19:31:29 +02:00 committed by Eric Engestrom
parent db932b6456
commit 9f0f6df18c
2 changed files with 7 additions and 2 deletions

View file

@ -374,7 +374,7 @@
"description": "radeonsi/vcn: Fix 10bit HEVC VPS general_profile_compatibility_flags",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -779,7 +779,12 @@ static void radeon_enc_nalu_vps(struct radeon_encoder *enc)
radeon_enc_code_fixed_bits(enc, 0x0, 2);
radeon_enc_code_fixed_bits(enc, enc->enc_pic.general_tier_flag, 1);
radeon_enc_code_fixed_bits(enc, enc->enc_pic.general_profile_idc, 5);
radeon_enc_code_fixed_bits(enc, 0x60000000, 32);
if (enc->enc_pic.general_profile_idc == 2)
radeon_enc_code_fixed_bits(enc, 0x20000000, 32);
else
radeon_enc_code_fixed_bits(enc, 0x60000000, 32);
radeon_enc_code_fixed_bits(enc, 0xb0000000, 32);
radeon_enc_code_fixed_bits(enc, 0x0, 16);
radeon_enc_code_fixed_bits(enc, enc->enc_pic.general_level_idc, 8);