diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2011-12-20 00:33:24 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-12-20 20:34:32 +0000 |
commit | d0d110e096298d2715aa26b3698e604e0d4a2fb9 (patch) | |
tree | 5ea4b13f7fcb28940a9c1f5d4ffa28188ebc4704 /include/drm/drm_crtc_helper.h | |
parent | c75488376a55c207172f78664d600b87df88107f (diff) | |
download | op-kernel-dev-d0d110e096298d2715aa26b3698e604e0d4a2fb9.zip op-kernel-dev-d0d110e096298d2715aa26b3698e604e0d4a2fb9.tar.gz |
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.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 e88b7d7..37515d1 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 |