]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Block FPO According to Luminance Delta
authorEthan Bitnun <etbitnun@amd.com>
Wed, 10 Apr 2024 21:16:35 +0000 (17:16 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Apr 2024 13:46:37 +0000 (09:46 -0400)
commitdc2be9c68ffb2d2b960e6b1835327438b929b814
tree98d8f4d839744f20edef29b054af5da1302a6628
parentec426766a45201f14f8ac974855a9a47a39286ab
drm/amd/display: Block FPO According to Luminance Delta

[Description]
 - Block FPO if the max stretch refresh rate is low enough
   to cause a flicker by storing the maximum safe refresh
   decrease from nominal in stream.
 - Brought over various Freesync Luminance functions to dc. Use these
   new functions to block fpo if we will flicker.
 - Generalized increase/reduce dependent functions to reduce code clutter
   and allow for easier use.
 - Added a debug option to enable the feature. Disabled by default.

Co-authored-by: Ethan Bitnun <etbitnun@amd.com>
Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Ethan Bitnun <etbitnun@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dc_stream.h
drivers/gpu/drm/amd/display/dc/dc_stream_priv.h
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c