aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_crtc.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2015-03-09 04:41:07 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-03-10 04:59:36 -0400
commit7eb5f302bbe78b88da8b2008c502c1975e75db05 (patch)
tree1b07b37cf0d9aa68712ad93d7da50a1b754bca44 /include/drm/drm_crtc.h
parentc484f02d0f02fbbfc6decc945a69aae011041a27 (diff)
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>
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r--include/drm/drm_crtc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index da83d39e37d4..adc9ea5acf02 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -830,6 +830,7 @@ enum drm_plane_type {
830 * @possible_crtcs: pipes this plane can be bound to 830 * @possible_crtcs: pipes this plane can be bound to
831 * @format_types: array of formats supported by this plane 831 * @format_types: array of formats supported by this plane
832 * @format_count: number of formats supported 832 * @format_count: number of formats supported
833 * @format_default: driver hasn't supplied supported formats for the plane
833 * @crtc: currently bound CRTC 834 * @crtc: currently bound CRTC
834 * @fb: currently bound fb 835 * @fb: currently bound fb
835 * @old_fb: Temporary tracking of the old fb while a modeset is ongoing. Used by 836 * @old_fb: Temporary tracking of the old fb while a modeset is ongoing. Used by
@@ -850,6 +851,7 @@ struct drm_plane {
850 uint32_t possible_crtcs; 851 uint32_t possible_crtcs;
851 uint32_t *format_types; 852 uint32_t *format_types;
852 uint32_t format_count; 853 uint32_t format_count;
854 bool format_default;
853 855
854 struct drm_crtc *crtc; 856 struct drm_crtc *crtc;
855 struct drm_framebuffer *fb; 857 struct drm_framebuffer *fb;