]> 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)
commitbda56ded0f79a18e55c541d00e5a431cb360bc2b
tree1b07b37cf0d9aa68712ad93d7da50a1b754bca44
parent7fb078b3391abd5156dd3d066e9c54d2ea6157ab
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