summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_crtc_helper.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2011-12-20 00:33:24 +0200
committerDave Airlie <airlied@redhat.com>2011-12-20 20:34:32 +0000
commitd0d110e096298d2715aa26b3698e604e0d4a2fb9 (patch)
tree5ea4b13f7fcb28940a9c1f5d4ffa28188ebc4704 /include/drm/drm_crtc_helper.h
parentc75488376a55c207172f78664d600b87df88107f (diff)
downloadlinux-d0d110e096298d2715aa26b3698e604e0d4a2fb9.tar.bz2
drm: Add drm_format_num_planes() utility function
This function returns the number of planes used by a specific pixel format. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Rob Clark <rob.clark@linaro.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_crtc_helper.h')
-rw-r--r--include/drm/drm_crtc_helper.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drm_crtc_helper.h b/include/drm/drm_crtc_helper.h
index e88b7d70594e..37515d1afab3 100644
--- a/include/drm/drm_crtc_helper.h
+++ b/include/drm/drm_crtc_helper.h
@@ -144,4 +144,7 @@ extern void drm_helper_hpd_irq_event(struct drm_device *dev);
extern void drm_kms_helper_poll_disable(struct drm_device *dev);
extern void drm_kms_helper_poll_enable(struct drm_device *dev);
+
+extern int drm_format_num_planes(uint32_t format);
+
#endif