drm/arm/malidp: Validate rotations for compressed/uncompressed framebuffers for each...
authorLiviu Dudau <Liviu.Dudau@arm.com>
Tue, 2 Oct 2018 11:11:00 +0000 (12:11 +0100)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Tue, 2 Oct 2018 11:11:00 +0000 (12:11 +0100)
commit66da13a519b33143932df5dc89973781c027c827
tree10a59d19a43846cf8bf058fc2aab82c037b052dc
parent1f23a56a46b81de50eb8b898f06296ca06720a99
drm/arm/malidp: Validate rotations for compressed/uncompressed framebuffers for each layer

Add support for compressed framebuffers that are described using
the framebuffer's modifier field. Mali DP uses the rotation memory for
the decompressor of the format, so we need to check for space when
the modifiers are present.

Signed-off-by: Ayan Kumar Halder <ayan.halder@arm.com>
Reviewed-by: Brian Starkey <brian.starkey@arm.com>
[re-worded commit, rebased, cleaned up duplicated checks for
 RGB888 and BGR888 and removed additional parameter for
 rotmem_required function hook]
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/arm/malidp_crtc.c
drivers/gpu/drm/arm/malidp_hw.c
drivers/gpu/drm/arm/malidp_hw.h
drivers/gpu/drm/arm/malidp_planes.c