diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2016-02-23 10:22:51 +0100 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2016-03-31 11:23:31 +0200 |
commit | 67ca6b60a72aa940f1db41268f8530e19a7525fd (patch) | |
tree | b16e8d975548119d9f732d685bc93164700bc631 /drivers/gpu/drm/imx/ipuv3-plane.h | |
parent | gpu: ipu-cpmem: modify ipu_cpmem_set_yuv_planar_full for better control (diff) | |
download | linux-67ca6b60a72aa940f1db41268f8530e19a7525fd.tar.xz linux-67ca6b60a72aa940f1db41268f8530e19a7525fd.zip |
drm/imx: ipuv3-plane: Add more thorough checks for plane parameter limitations
The IPU addresses multiplanar formats using a base address and relative
offsets for the secondary planes. Since those offsets must be positive
and not too large, and none of the plane parameters except the base address
may be changed while scanout is active, store the pitches and u/v offsets
and check all values against IDMAC limitations.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/imx/ipuv3-plane.h')
-rw-r--r-- | drivers/gpu/drm/imx/ipuv3-plane.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/imx/ipuv3-plane.h b/drivers/gpu/drm/imx/ipuv3-plane.h index 3a443b413c60..4448fd4ad4eb 100644 --- a/drivers/gpu/drm/imx/ipuv3-plane.h +++ b/drivers/gpu/drm/imx/ipuv3-plane.h @@ -29,6 +29,10 @@ struct ipu_plane { int w; int h; + unsigned int u_offset; + unsigned int v_offset; + unsigned int stride[2]; + bool enabled; }; |