radeon/vcn/enc: Add missing line to HEVC SPS header code

Add previously missing line in HEVC SPS header generation on VCN 1.0
devices, for when an image does not need to be cropped.

Fixes: e62c7e7c6c ("radeon: Add cropping to encoded H.265 when padding is used")
Signed-off-by: Thong Thai <thong.thai@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11535>
(cherry picked from commit d977e7fbe1)
This commit is contained in:
Thong Thai 2021-06-22 13:47:52 -04:00 committed by Eric Engestrom
parent 5378895d48
commit 94bc232abe
2 changed files with 2 additions and 1 deletions

View file

@ -1615,7 +1615,7 @@
"description": "radeon/vcn/enc: Add missing line to HEVC SPS header code",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "e62c7e7c6caa6c9531afb694e7952a7fc3ac4401"
},

View file

@ -412,6 +412,7 @@ static void radeon_enc_nalu_sps_hevc(struct radeon_encoder *enc)
radeon_enc_code_ue(enc, enc->enc_pic.session_init.padding_height / 2);
radeon_enc_code_ue(enc, enc->enc_pic.session_init.padding_height / 2);
} else
radeon_enc_code_fixed_bits(enc, 0x0, 1);
radeon_enc_code_ue(enc, enc->enc_pic.bit_depth_luma_minus8);
radeon_enc_code_ue(enc, enc->enc_pic.bit_depth_chroma_minus8);