]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Add support for multiple overlay planes
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Tue, 17 Jan 2023 19:35:41 +0000 (14:35 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Feb 2023 21:06:38 +0000 (16:06 -0500)
commit35f33086b1b9cf5d85f55b36c75b92f8cccfbf12
tree9e60316e4261bcf4fa10a364aa0b96c55083bec5
parent5ca38a18b5a47017d0e9a016661dad12322767fa
drm/amd/display: Add support for multiple overlay planes

[Why]
We only allowed 1 overlay plane. But now some ASICS can support multiple
overlay planes.

[How]
Use max_slave_planes as the number of overlays we can support.

Also since we cannot draw cursor over a video plane, we need to make
sure that we reject commits where the topmost plane is a video plane
(overlay only).

Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.h