diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2012-04-05 14:35:16 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-04-20 07:37:32 -0400 |
commit | 5a86bd552407bd6b3e0df4e88636797484d06430 (patch) | |
tree | 1d8f6746b0381b599cb7e5c1afb0490a6a0d009f /include/drm | |
parent | 141670e9b4356b59b5b39a99e10ac0118d12b16d (diff) |
drm: Add drm_format_plane_cpp() utility function
This function returns the bytes per pixel value based on the pixel
format and plane index.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_crtc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 9dd3ed85547d..2d128eb4293f 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -1027,5 +1027,6 @@ extern int drm_mode_destroy_dumb_ioctl(struct drm_device *dev, | |||
1027 | extern void drm_fb_get_bpp_depth(uint32_t format, unsigned int *depth, | 1027 | extern void drm_fb_get_bpp_depth(uint32_t format, unsigned int *depth, |
1028 | int *bpp); | 1028 | int *bpp); |
1029 | extern int drm_format_num_planes(uint32_t format); | 1029 | extern int drm_format_num_planes(uint32_t format); |
1030 | extern int drm_format_plane_cpp(uint32_t format, int plane); | ||
1030 | 1031 | ||
1031 | #endif /* __DRM_CRTC_H__ */ | 1032 | #endif /* __DRM_CRTC_H__ */ |