drm/amd/display: Update in dml
authorAlvin Lee <Alvin.Lee2@amd.com>
Tue, 27 Jul 2021 22:32:45 +0000 (18:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Jul 2022 20:04:27 +0000 (16:04 -0400)
Update DML to configure drr_display in vba struct.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Alvin Lee <Alvin.Lee2@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/display_mode_structs.h
drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c

index 87c9b9f..e8b0940 100644 (file)
@@ -499,6 +499,7 @@ struct _vcs_dpi_display_pipe_dest_params_st {
        unsigned int refresh_rate;
        bool synchronize_timings;
        unsigned int odm_combine_policy;
+       bool drr_display;
 };
 
 struct _vcs_dpi_display_pipe_params_st {
index c5a0a36..de78bb8 100644 (file)
@@ -697,6 +697,7 @@ static void fetch_pipe_params(struct display_mode_lib *mode_lib)
                mode_lib->vba.PixelClock[mode_lib->vba.NumberOfActivePlanes] = dst->pixel_rate_mhz;
                mode_lib->vba.PixelClockBackEnd[mode_lib->vba.NumberOfActivePlanes] = dst->pixel_rate_mhz;
                mode_lib->vba.DPPCLK[mode_lib->vba.NumberOfActivePlanes] = clks->dppclk_mhz;
+               mode_lib->vba.DRRDisplay[mode_lib->vba.NumberOfActiveSurfaces] = dst->drr_display;
                if (ip->is_line_buffer_bpp_fixed)
                        mode_lib->vba.LBBitPerPixel[mode_lib->vba.NumberOfActivePlanes] =
                                        ip->line_buffer_fixed_bpp;