drm/amd/display: add primary pipe check when building slice table for dcn3x
authorWenjing Liu <wenjing.liu@amd.com>
Thu, 14 Sep 2023 15:55:02 +0000 (11:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2023 21:00:22 +0000 (17:00 -0400)
commitdf475cced6af357304e8959df2ce740992aa0dec
tree4131a2d67f9bb638793befbc151f38bb1718ede0
parent173db0c8b7664892fee343e5a605197962fc3ca8
drm/amd/display: add primary pipe check when building slice table for dcn3x

[why]
There is a corner use case where the same plane pointer can be added into
dc state twice. In addition to plane state pointer check we also need to match
primary pipe before identifying the same plane.

Reviewed-by: Dillon Varone <dillon.varone@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/dml/dcn32/dcn32_fpu.c