aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sun4i/sun4i_backend.h
diff options
context:
space:
mode:
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>2018-11-23 10:24:36 +0100
committerMaxime Ripard <maxime.ripard@bootlin.com>2018-11-27 09:33:34 +0100
commit3d4265f89d064df2a6952e3f24a3da4fd687cc65 (patch)
treef1b3348c9894cbe04a46a6b3e050b537ddc34b9c /drivers/gpu/drm/sun4i/sun4i_backend.h
parentdrm/sun4i: Add TODO comment about supporting scaling with the backend (diff)
downloadlinux-dev-3d4265f89d064df2a6952e3f24a3da4fd687cc65.tar.xz
linux-dev-3d4265f89d064df2a6952e3f24a3da4fd687cc65.zip
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
Diffstat (limited to '')
-rw-r--r--drivers/gpu/drm/sun4i/sun4i_backend.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_backend.h b/drivers/gpu/drm/sun4i/sun4i_backend.h
index 339dbff1cce4..93db3af675b3 100644
--- a/drivers/gpu/drm/sun4i/sun4i_backend.h
+++ b/drivers/gpu/drm/sun4i/sun4i_backend.h
@@ -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,