aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_plane.c
diff options
context:
space:
mode:
authorVille Syrjälä <[email protected]>2024-06-19 11:31:44 +0000
committerVille Syrjälä <[email protected]>2024-06-24 14:08:53 +0000
commit1c5f18d88eae348cf45f90aaee7b361f593b0701 (patch)
tree98bb8ee97a7c0d6a918a8396770c0e9805ae5c5f /drivers/gpu/drm/drm_plane.c
parentdrm: Rename drm_plane_check_pixel_format() to drm_plane_has_format() (diff)
downloadkernel-1c5f18d88eae348cf45f90aaee7b361f593b0701.tar.gz
kernel-1c5f18d88eae348cf45f90aaee7b361f593b0701.zip
drm: Export drm_plane_has_format()
Export drm_plane_has_format() so that drivers can use it. v2: add kerneldoc Reviewed-by: Jani Nikula <[email protected]> Reviewed-by: Daniel Vetter <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Daniel Vetter <[email protected]> Acked-by: Daniel Stone <[email protected]> Acked-by: Thomas Zimmermann <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/drm_plane.c')
-rw-r--r--drivers/gpu/drm/drm_plane.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_plane.c b/drivers/gpu/drm/drm_plane.c
index 268aa2299df5..a28b22fdd7a4 100644
--- a/drivers/gpu/drm/drm_plane.c
+++ b/drivers/gpu/drm/drm_plane.c
@@ -877,6 +877,15 @@ int drm_mode_getplane(struct drm_device *dev, void *data,
return 0;
}
+/**
+ * drm_plane_has_format - Check whether the plane supports this format and modifier combination
+ * @plane: drm plane
+ * @format: pixel format (DRM_FORMAT_*)
+ * @modifier: data layout modifier
+ *
+ * Returns:
+ * Whether the plane supports the specified format and modifier combination.
+ */
bool drm_plane_has_format(struct drm_plane *plane,
u32 format, u64 modifier)
{
@@ -906,6 +915,7 @@ bool drm_plane_has_format(struct drm_plane *plane,
return true;
}
+EXPORT_SYMBOL(drm_plane_has_format);
static int __setplane_check(struct drm_plane *plane,
struct drm_crtc *crtc,