]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amd/display: add embedded flag to dml
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Tue, 1 Oct 2019 20:08:31 +0000 (16:08 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Oct 2019 20:50:08 +0000 (16:50 -0400)
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Eric Bernstein <Eric.Bernstein@amd.com>
Acked-by: Leo Li <sunpeng.li@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
drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h

index 83f84cdd4055cf07140a1a045d42f5f261a4d855..cfacd602746756a8563a9d476bbd841eae5c78a2 100644 (file)
@@ -318,6 +318,7 @@ struct _vcs_dpi_display_pipe_dest_params_st {
        unsigned int vupdate_width;
        unsigned int vready_offset;
        unsigned char interlaced;
+       unsigned char embedded;
        double pixel_rate_mhz;
        unsigned char synchronized_vblank_all_planes;
        unsigned char otg_inst;
index 038701d7383d0010ab00101a3808098f29409fec..7f9a5621922f7d61d42aa480a0ef98ddb4e2a1b2 100644 (file)
@@ -375,6 +375,7 @@ static void fetch_pipe_params(struct display_mode_lib *mode_lib)
 
                mode_lib->vba.pipe_plane[j] = mode_lib->vba.NumberOfActivePlanes;
 
+               mode_lib->vba.EmbeddedPanel[mode_lib->vba.NumberOfActivePlanes] = dst->embedded;
                mode_lib->vba.DPPPerPlane[mode_lib->vba.NumberOfActivePlanes] = 1;
                mode_lib->vba.SourceScan[mode_lib->vba.NumberOfActivePlanes] =
                                (enum scan_direction_class) (src->source_scan);
index 91decac5055759c6b068a7cf6e73f2caa358ff05..1540ffbe3979b91d7415b71243eb6414557559d7 100644 (file)
@@ -387,6 +387,7 @@ struct vba_vars_st {
 
        /* vba mode support */
        /*inputs*/
+       bool EmbeddedPanel[DC__NUM_DPP__MAX];
        bool SupportGFX7CompatibleTilingIn32bppAnd64bpp;
        double MaxHSCLRatio;
        double MaxVSCLRatio;