From 21da3be7a252eca8a0784857da82b509b448efdb Mon Sep 17 00:00:00 2001 From: Thong Thai Date: Tue, 13 Jul 2021 11:59:50 -0400 Subject: [PATCH] r600: change rate ctrl struct to array Signed-off-by: Thong Thai Reviewed-by: Boyuan Zhang Part-of: --- src/gallium/drivers/r600/radeon_vce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/radeon_vce.c b/src/gallium/drivers/r600/radeon_vce.c index 1cf8522..132802d 100644 --- a/src/gallium/drivers/r600/radeon_vce.c +++ b/src/gallium/drivers/r600/radeon_vce.c @@ -270,7 +270,7 @@ static void rvce_begin_frame(struct pipe_video_codec *encoder, struct pipe_h264_enc_picture_desc *pic = (struct pipe_h264_enc_picture_desc *)picture; bool need_rate_control = - enc->pic.rate_ctrl.rate_ctrl_method != pic->rate_ctrl.rate_ctrl_method || + enc->pic.rate_ctrl[0].rate_ctrl_method != pic->rate_ctrl[0].rate_ctrl_method || enc->pic.quant_i_frames != pic->quant_i_frames || enc->pic.quant_p_frames != pic->quant_p_frames || enc->pic.quant_b_frames != pic->quant_b_frames; -- 2.7.4