drm/amd/display: increase MAX_SURFACES to the value supported by hw
authorMelissa Wen <mwen@igalia.com>
Tue, 17 Dec 2024 20:45:04 +0000 (17:45 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Dec 2024 22:39:05 +0000 (17:39 -0500)
commitb8d6daffc871a42026c3c20bff7b8fa0302298c1
tree7707db06b81e04435c4a706e468ee74f3e274514
parent1c86c81a86c60f9b15d3e3f43af0363cf56063e7
drm/amd/display: increase MAX_SURFACES to the value supported by hw

As the hw supports up to 4 surfaces, increase the maximum number of
surfaces to prevent the DC error when trying to use more than three
planes.

[drm:dc_state_add_plane [amdgpu]] *ERROR* Surface: can not attach plane_state 000000003e2cb82c! Maximum is: 3

Link: https://gitlab.freedesktop.org/drm/amd/-/issues/3693
Signed-off-by: Melissa Wen <mwen@igalia.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc.h