]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Pass plane caps into amdgpu_dm_plane_init
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Thu, 14 Mar 2019 19:58:51 +0000 (15:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2019 18:53:28 +0000 (13:53 -0500)
commit6d9cbfe7fb4659a5a78922ce9b799fe94e76fe17
tree6bcb2eb38374209f1c7f34b8f63a0e66264c2936
parentd780607b4a5bb6bdbc45dad33e6eb5824aced7f5
drm/amd/display: Pass plane caps into amdgpu_dm_plane_init

[Why]
When deciding to add properties or expose formats on DRM planes we
should be querying the caps for the DC plane it's supposed to represent.

[How]
Pass plane caps down into plane initialization, refactoring overlay
plane initialization to have the overlay plane be represented by
the first overlay capable DC plane.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c