drm/sun4i: backend: Add a helper and a list for supported formats
In order to check whether the backend supports a specific format, an explicit list and a related helper are introduced. The prototype of this helper is added to the header so that it can be called from sun4i_layer later (when introducing tiled mode support). Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> Link: https://patchwork.freedesktop.org/patch/msgid/20181123092515.2511-5-paul.kocialkowski@bootlin.com
This commit is contained in:

committed by
Maxime Ripard

parent
ad25d0736d
commit
3d4265f89d
@@ -198,6 +198,7 @@ engine_to_sun4i_backend(struct sunxi_engine *engine)
|
||||
|
||||
void sun4i_backend_layer_enable(struct sun4i_backend *backend,
|
||||
int layer, bool enable);
|
||||
bool sun4i_backend_format_is_supported(uint32_t fmt);
|
||||
int sun4i_backend_update_layer_coord(struct sun4i_backend *backend,
|
||||
int layer, struct drm_plane *plane);
|
||||
int sun4i_backend_update_layer_formats(struct sun4i_backend *backend,
|
||||
|
Reference in New Issue
Block a user