drm: mali-dp: Store internal format and n_planes in plane state

Save a search through the format lists at commit-time by storing the
internal format ID and number of planes in our plane state.

Signed-off-by: Brian Starkey <brian.starkey@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
This commit is contained in:
Brian Starkey
2016-10-11 15:26:09 +01:00
committed by Liviu Dudau
parent c57eb710b6
commit 70c94a3c8f
2 changed files with 15 additions and 15 deletions

View File

@@ -39,6 +39,9 @@ struct malidp_plane_state {
/* size of the required rotation memory if plane is rotated */
u32 rotmem_size;
/* internal format ID */
u8 format;
u8 n_planes;
};
#define to_malidp_plane(x) container_of(x, struct malidp_plane, base)