drm/amd/display: Reprogram FMT on pipe change
authorJulian Parkin <julian.parkin@amd.com>
Thu, 22 Aug 2019 20:32:05 +0000 (16:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Oct 2019 00:25:00 +0000 (19:25 -0500)
commit377c9d047379140bcb31bb3bd800898bd143829a
tree793b46c15b19bf712d9dc348c9579d53559f6deb
parent1caba4e83b9d8a322375de04d2cfe23d7ccc1b89
drm/amd/display: Reprogram FMT on pipe change

[Why]
When planes are added or removed from a stream, the change
in pipe usage from dynamic MPC combine can cause a second
stream using ODM combine to pick a different pipe to combine with.

In this scenario, a different OPP is connected to the ODM without
programming its FMT.

[How]
Reprogram the FMT in dcn20_program_pipe whenever a pipe is
newly enabled, or when its opp changes.

Signed-off-by: Julian Parkin <julian.parkin@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c