summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/imx/imx-drm.h
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2017-03-08 14:13:21 +0300
committerPhilipp Zabel <p.zabel@pengutronix.de>2017-03-16 12:14:51 +0300
commit00514e8593350498790d19c7e21b720fee899cf7 (patch)
treebc725d9c69a4158c7f0b4fca54b0d878b411d4d6 /drivers/gpu/drm/imx/imx-drm.h
parente0fb7dd2f00440b5449f625dee7b442219d8a56e (diff)
downloadlinux-00514e8593350498790d19c7e21b720fee899cf7.tar.xz
drm/imx: use PRG/PRE when possible
Allow the planes to use the PRG/PRE units as linear prefetchers when possible. This improves DRAM efficiency a bit and reduces the chance for display underflow when the memory subsystem is under load. This does not yet support scanning out tiled buffers directly, as this needs more work, but it already wires up the basic interaction between imx-drm, the IPUv3 driver and the PRG and PRE drivers. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/imx/imx-drm.h')
-rw-r--r--drivers/gpu/drm/imx/imx-drm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/imx/imx-drm.h b/drivers/gpu/drm/imx/imx-drm.h
index cc003334505d..295434b199db 100644
--- a/drivers/gpu/drm/imx/imx-drm.h
+++ b/drivers/gpu/drm/imx/imx-drm.h
@@ -39,4 +39,7 @@ int imx_drm_encoder_parse_of(struct drm_device *drm,
void imx_drm_connector_destroy(struct drm_connector *connector);
void imx_drm_encoder_destroy(struct drm_encoder *encoder);
+int ipu_planes_assign_pre(struct drm_device *dev,
+ struct drm_atomic_state *state);
+
#endif /* _IMX_DRM_H_ */