diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2015-02-23 03:59:35 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2015-03-03 17:16:27 +0300 |
commit | 5bfcbce0eaeb884e258648e5ceb74a61cfb80f3c (patch) | |
tree | 0880b39b3c7ddc92c991b2972f92706dce493499 /drivers/gpu/drm/rcar-du/rcar_du_plane.h | |
parent | 53dff601790ebc3d4caffef12b2c4754f5886c64 (diff) | |
download | linux-5bfcbce0eaeb884e258648e5ceb74a61cfb80f3c.tar.xz |
drm: rcar-du: Move plane format to plane state
The format stored in the rcar_du_plane structure is part of the plane
state. Move it to the rcar_du_plane_state structure and precompute it in
the .atomic_check() handler.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Diffstat (limited to 'drivers/gpu/drm/rcar-du/rcar_du_plane.h')
-rw-r--r-- | drivers/gpu/drm/rcar-du/rcar_du_plane.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_plane.h b/drivers/gpu/drm/rcar-du/rcar_du_plane.h index 7050fc1e11ec..0941c4830edd 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_plane.h +++ b/drivers/gpu/drm/rcar-du/rcar_du_plane.h @@ -32,12 +32,8 @@ struct rcar_du_group; struct rcar_du_plane { struct drm_plane plane; - struct rcar_du_group *group; - int hwindex; /* 0-based, -1 means unused */ - - const struct rcar_du_format_info *format; }; struct rcar_du_planes { @@ -53,6 +49,8 @@ struct rcar_du_planes { struct rcar_du_plane_state { struct drm_plane_state state; + const struct rcar_du_format_info *format; + unsigned int alpha; unsigned int colorkey; unsigned int zpos; |