drm: Check in setcrtc if the primary plane supports the fb pixel format
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 9 Mar 2015 08:41:07 +0000 (10:41 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 10 Mar 2015 08:59:36 +0000 (09:59 +0100)
Drivers implementing the universal planes API report the list of
supported pixel formats for the primary plane. Make sure the fb passed
to the setcrtc ioctl is compatible.

Drivers not implementing the universal planes API will have no format
reported for the primary plane, skip the check in that case.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_plane_helper.c
include/drm/drm_crtc.h

Simple merge
Simple merge
Simple merge