]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitabe4900ba34fd881cdb13851a9009da7c3eb4355
tree10a59d19a43846cf8bf058fc2aab82c037b052dc
parent89213b8dea32f88f049ee912e436380a9cbd7de0
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