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)
commit7eb5f302bbe78b88da8b2008c502c1975e75db05
tree1b07b37cf0d9aa68712ad93d7da50a1b754bca44
parentc484f02d0f02fbbfc6decc945a69aae011041a27
drm: Check in setcrtc if the primary plane supports the fb pixel format

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