diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2011-12-19 23:33:24 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-12-20 21:34:32 +0100 |
commit | d0d110e096298d2715aa26b3698e604e0d4a2fb9 (patch) | |
tree | 5ea4b13f7fcb28940a9c1f5d4ffa28188ebc4704 /include/drm | |
parent | drm: call connector dpms fxn, when setting config (diff) | |
download | linux-d0d110e096298d2715aa26b3698e604e0d4a2fb9.tar.xz linux-d0d110e096298d2715aa26b3698e604e0d4a2fb9.zip |
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')
-rw-r--r-- | include/drm/drm_crtc_helper.h | 3 |
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 |