]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3e3cb37b7339b813519ebf3c0355985f4cd431e6
tree1b07b37cf0d9aa68712ad93d7da50a1b754bca44
parentb3d1acee77ab6bc2af663870eaa2a2b84fbaa687
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