drm/amd/display: Generalize new minimal transition path
authorAlvin Lee <alvin.lee2@amd.com>
Wed, 7 Feb 2024 19:00:10 +0000 (14:00 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Feb 2024 15:24:05 +0000 (10:24 -0500)
commitd2dea1f1403854d921986217420617d5913a51c9
tree9c36867ca4fcfab5adcb14c8a7270593e15cf46a
parent7d1e9d0369e4d45738d4b905c3ec92f76d7f91e6
drm/amd/display: Generalize new minimal transition path

Previously the new minimal transition path was only used for windowed
MPO + ODM for plane scaling updates. However, we want to generalize the
transition for all cases whenever a non-seamless transition is detected
(such as for MPO -> SubVP + MPC).

To make this change we add pointers in the plane state, stream, and
pointers in the stream state to the dc_scratch state and backup and
restore these so the minimal transition can take place successfully.

Reviewed-by: Wenjing Liu <wenjing.liu@amd.com>
Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/inc/core_types.h