Mesa (master): radeon/vcn: fix hevc 10bit profile error
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Dec 23 23:13:42 UTC 2020
Module: Mesa
Branch: master
Commit: 69487c754c48f31f1e2befa7aea0c2e78e77b0df
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=69487c754c48f31f1e2befa7aea0c2e78e77b0df
Author: Ruijing Dong <Ruijing.Dong at amd.com>
Date: Thu Dec 3 15:34:56 2020 -0500
radeon/vcn: fix hevc 10bit profile error
hevc main10 profile error fix
CC: mesa-stable
Signed-off-by: Ruijing Dong <Ruijing.Dong at amd.com>
Reviewed-by: Leo Liu <leo.liu at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8038>
---
src/gallium/drivers/radeon/radeon_vcn_enc_2_0.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/radeon/radeon_vcn_enc_2_0.c b/src/gallium/drivers/radeon/radeon_vcn_enc_2_0.c
index 0ef1ba36f8f..f5f0a5fc3e3 100644
--- a/src/gallium/drivers/radeon/radeon_vcn_enc_2_0.c
+++ b/src/gallium/drivers/radeon/radeon_vcn_enc_2_0.c
@@ -261,7 +261,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);
More information about the mesa-commit
mailing list