drm/amd/display: fix pipe topology logging error
authorWenjing Liu <wenjing.liu@amd.com>
Fri, 18 Aug 2023 14:08:29 +0000 (10:08 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Aug 2023 19:38:11 +0000 (15:38 -0400)
commitd55a36062eb52e95195dab038bb9f237c69ca190
treef98fdd1eb14d2abb422fb16d54c5fbada7da09bf
parent07926ba8a44f0ca9165ee2fb17c9afc7908c3b2b
drm/amd/display: fix pipe topology logging error

[why]
There is a logging error in the recently added pipe topology log.
If the plane with index 0 uses MPC combine, the log shows that
as two separate planes.

[how]
Initialize plane idx as -1 and increment plane idx before logging
any primary dpp pipes of a plane.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c