Module: Mesa Branch: main Commit: 7a4e3b27880a310c64064bc6ddb586f80211b6a2 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7a4e3b27880a310c64064bc6ddb586f80211b6a2
Author: David Rosca <[email protected]> Date: Mon Jul 17 12:57:34 2023 +0200 radeonsi/vcn: Fix setting color range in AV1 bitstream As per spec color_range and chroma_sample_position parameters are always set, not conditional on color_description_present_flag. Reviewed-by: Ruijing Dong <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24179> --- src/gallium/drivers/radeonsi/radeon_vcn_enc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/radeon_vcn_enc.c b/src/gallium/drivers/radeonsi/radeon_vcn_enc.c index cb4d9e336c7..3cdbc4ac3cb 100644 --- a/src/gallium/drivers/radeonsi/radeon_vcn_enc.c +++ b/src/gallium/drivers/radeonsi/radeon_vcn_enc.c @@ -542,9 +542,9 @@ static void radeon_vcn_enc_av1_color_description(struct radeon_encoder *enc, enc->enc_pic.av1_color_description.color_primaries = pic->seq.color_config.color_primaries; enc->enc_pic.av1_color_description.transfer_characteristics = pic->seq.color_config.transfer_characteristics; enc->enc_pic.av1_color_description.maxtrix_coefficients = pic->seq.color_config.matrix_coefficients; - enc->enc_pic.av1_color_description.color_range = pic->seq.color_config.color_range; - enc->enc_pic.av1_color_description.chroma_sample_position = pic->seq.color_config.chroma_sample_position; } + enc->enc_pic.av1_color_description.color_range = pic->seq.color_config.color_range; + enc->enc_pic.av1_color_description.chroma_sample_position = pic->seq.color_config.chroma_sample_position; } static void radeon_vcn_enc_av1_get_rc_param(struct radeon_encoder *enc,
