drm/amd/display: determine fast update only before commit minimal transition state
authorWenjing Liu <wenjing.liu@amd.com>
Thu, 7 Sep 2023 16:14:37 +0000 (12:14 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2023 21:00:20 +0000 (17:00 -0400)
commit036cf278a8257b391b4f5b919ddc668c9b1ce9a7
tree9d31c744f31eaf6c6af8d71a13fcdd948973c2c0
parent08338707ccd4b8a07b565d953684af495270b41e
drm/amd/display: determine fast update only before commit minimal transition state

[why]
commit minimal transition state would update current
state to new state with surface and stream update
applied. If we determine fast update only after we
have committed the minimal transition state based on
new state, we will skip committing the full new state.

[how]
determine fast update only earlier based on the
actaul currents state. Only skip full commit when
the transition between actual current state and new
state is fast update only.

Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@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.c