• Aurabindo Pillai's avatar
    drm/amd/display: Add freesync video modes based on preferred modes · d10cd527
    Aurabindo Pillai authored
    [Why]
    While possible for userspace to create and add custom mode based off the
    optimized mode for the connected display which differs only in front porch
    timing, this patch set adds a list of common video modes in advance.
    
    The list of common video refresh rates is small, well known and the optimized
    mode has specific requirements to be able to enable HW frame doubling and
    tripling so it makes most sense to create the modes that video players will need
    in advance. The optimized mode matches the preferred mode resolution but has the
    highest refresh rate available to enable the largest front porch extension.
    
    [How]
    Find the optimized mode and store it on the connector so we can check it
    later during our optimized modeset.
    
    Prepopulate the mode list with a list of common video mades based on the
    optimized mode (but with a longer front porch) if the panel doesn't support a
    variant of the mode natively.
    Signed-off-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
    Acked-by: default avatarChristian König <christian.koenig@amd.com>
    Reviewed-by: default avatarShashank Sharma <shashank.sharma@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    d10cd527
amdgpu_dm.h 14.2 KB