]> git.baikalelectronics.ru Git - kernel.git/commit
drm/plane: drop num_overlay_planes (v3)
authorDave Airlie <airlied@redhat.com>
Thu, 12 Oct 2017 23:52:01 +0000 (00:52 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 17 Oct 2017 01:32:29 +0000 (11:32 +1000)
commitb4b42f1e7a9c886d38106de9548c208c600af417
tree8d561e332d5aca9553427a420dcfe793a6cd79b7
parent6ac8a3882d9e31610af18ce3045810cd2c526059
drm/plane: drop num_overlay_planes (v3)

In order to implement plane leasing we need to count things,
just make the code consistent with the counting code currently
used for counting crtcs/encoders/connectors and drop the need
for num_overlay_planes.

v2: don't forget to assign plane_ptr. (keithp)
v3: use correct bounds check, found by igt.

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_mode_config.c
drivers/gpu/drm/drm_plane.c
include/drm/drm_mode_config.h