OSDN Git Service

drm/amd/display: Factor in immediate flip support into DLG calculations
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 7 Apr 2020 16:10:41 +0000 (12:10 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Apr 2020 22:11:48 +0000 (18:11 -0400)
commitc400ecce96458709f94dc25ab8e4cd2fad8726d1
treec9f4338fafd4bdde63c78e678b8eaa5e082eb4b4
parentd5bef51f084fccafa984b114ff74a01a64a0e2e3
drm/amd/display: Factor in immediate flip support into DLG calculations

[Why]
We expect to be able to perform immediate flipping without having to
recalculate and update all the watermarks.

There are certain usecases today (1080p @ 90deg, 2160p @ 90deg) such
that we get a urgency value of 0 for frac_urg_bw_flip because we're
explicitly passing in a value of "false" for requiring immediate
flip support into the DLG calculation.

[How]
Always pass in true into the calculation. With this we get a correct
non-zero value for frac_urg_bw_flip.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c