drm: introduce share plane
authorMark Yao <mark.yao@rock-chips.com>
Tue, 26 Apr 2016 11:46:57 +0000 (19:46 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 4 May 2016 10:16:50 +0000 (18:16 +0800)
commiteaf6764dee3701d0c0d17d1c1c6bb1ac8596e85b
tree4cf7c115b2bdf67d5c4fe9ec0aa151007c589db8
parente5683dd6c1ca3bd95e8c79e00ab2811e9198a05c
drm: introduce share plane

The plane hardware is used when the display scanout run into plane active
scanout, that means we can reuse the plane hardware resources on plane
non-active scanout.

Because resource share, There are some limit on share plane: one group
of share planes need use same zpos, can't not overlap, etc.

We assume share plane is a universal plane with some limit flags.
people who use the share plane need know the limit, should call the ioctl
DRM_CLIENT_CAP_SHARE_PLANES, and judge the planes limit before use it.

Change-Id: Iecc3d8e7f1ce29d567cdbad689ba4dbad3d594e1
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_ioctl.c
include/drm/drmP.h
include/drm/drm_crtc.h
include/uapi/drm/drm.h