drm/amd/display: Avoid force minimal transaction in case of surface_count equal to 0
authorJeromeHong <jerome.hong@amd.com>
Thu, 25 Aug 2022 07:52:11 +0000 (15:52 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Sep 2022 18:33:00 +0000 (14:33 -0400)
commitb04fa59a51e80eae9883a419e41b1bf8179e5a42
tree33bb0a820381c60a54310a42710c159e941cecd9
parent34955a1e797d074e72d0ac6a514d934d8fe80da1
drm/amd/display: Avoid force minimal transaction in case of surface_count equal to 0

[why]
Call commit_minimal_transition_state wrongly in case of surface_count
equal to 0.

[how]
Add a condition to filter case of surface_count equal to 0.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Pavle Kotarac <Pavle.Kotarac@amd.com>
Signed-off-by: JeromeHong <jerome.hong@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c