OSDN Git Service

drm/mali-dp: Rotated planes need a larger pitch size.
authorLiviu Dudau <Liviu.Dudau@arm.com>
Tue, 5 Dec 2017 16:51:03 +0000 (16:51 +0000)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Wed, 14 Mar 2018 11:38:02 +0000 (11:38 +0000)
commitfcad73b9b1fb9580fd43f1349fd8ab34d5d456e9
tree9561b1000b6bf2922fefbd85846bf08f398fd685
parent963976cfe9c54d4d9e725e61c90c47a4af6b5ea2
drm/mali-dp: Rotated planes need a larger pitch size.

Rotated planes need a pitch size that is aligned to 8 bytes
for older DP500 and DP550 and at least 64 bytes for DP650. Replace
the malidp_hw_pitch_valid() function with one that calculates
the correct pitch alignment to take into account rotation.

Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/arm/malidp_hw.h
drivers/gpu/drm/arm/malidp_planes.c