mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 22:18:13 +02:00
radeon/vcn: fix hevc 10bit profile error
hevc main10 profile error fix
CC: mesa-stable
Signed-off-by: Ruijing Dong <Ruijing.Dong@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8038>
(cherry picked from commit 69487c754c)
This commit is contained in:
parent
2fd551d4f3
commit
7c74888039
2 changed files with 7 additions and 2 deletions
|
|
@ -256,7 +256,7 @@
|
|||
"description": "radeon/vcn: fix hevc 10bit profile error",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -120,7 +120,12 @@ static void radeon_enc_nalu_sps_hevc(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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue