r600: change rate ctrl struct to array
authorThong Thai <thong.thai@amd.com>
Tue, 13 Jul 2021 15:59:50 +0000 (11:59 -0400)
committerThong Thai <thong.thai@amd.com>
Mon, 26 Jul 2021 19:06:05 +0000 (15:06 -0400)
Signed-off-by: Thong Thai <thong.thai@amd.com>
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11850>

src/gallium/drivers/r600/radeon_vce.c

index 1cf8522..132802d 100644 (file)
@@ -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;