drm: add support for private planes
In cases where the scanout hw is sufficiently similar between "overlay" and traditional crtc layers, it might be convenient to allow the driver to create internal drm_plane helper objects used by the drm_crtc implementation, rather than duplicate code between the plane and crtc. A private plane is not exposed to userspace. Signed-off-by: Rob Clark <rob@ti.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -659,7 +659,7 @@ intel_plane_init(struct drm_device *dev, enum pipe pipe)
|
||||
possible_crtcs = (1 << pipe);
|
||||
ret = drm_plane_init(dev, &intel_plane->base, possible_crtcs,
|
||||
&intel_plane_funcs, snb_plane_formats,
|
||||
ARRAY_SIZE(snb_plane_formats));
|
||||
ARRAY_SIZE(snb_plane_formats), false);
|
||||
if (ret)
|
||||
kfree(intel_plane);
|
||||
|
||||
|
Reference in New Issue
Block a user