@@ -589,6 +589,7 @@ int drm_plane_check_pixel_format(struct drm_plane *plane,
return 0;
}
+EXPORT_SYMBOL(drm_plane_check_pixel_format);
static int __setplane_check(struct drm_plane *plane,
struct drm_crtc *crtc,
@@ -763,6 +763,17 @@ static inline struct drm_plane *drm_plane_find(struct drm_device *dev,
return mo ? obj_to_plane(mo) : NULL;
}
+/**
+ * drm_plane_check_pixel_format - check format and modifier support.
+ * @plane: plane to check support against.
+ * @format: pixel format to check support for.
+ * @modifier: format modifier to check support for.
+ *
+ * Returns 0 on success or negative error code on failure.
+ */
+int drm_plane_check_pixel_format(struct drm_plane *plane,
+ u32 format, u64 modifier);
+
/**
* drm_for_each_plane_mask - iterate over planes specified by bitmask
* @plane: the loop cursor
i915 will make use of this to fail early during framebuffer creation. Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: dri-devel@lists.freedesktop.org Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> --- drivers/gpu/drm/drm_plane.c | 1 + include/drm/drm_plane.h | 11 +++++++++++ 2 files changed, 12 insertions(+)