]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm: mali-dp: fix stride setting for multi-plane formats
authorMihail Atanassov <mihail.atanassov@arm.com>
Mon, 23 Jan 2017 15:24:35 +0000 (15:24 +0000)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Thu, 26 Jan 2017 15:46:19 +0000 (15:46 +0000)
commit83d642ee6dbec57ef1639a3de1e383fbfc5c44ec
treec0bdb4752227b0aab0d124f1d4b17130dd7a0229
parentb70b332f14b704b22894571bc422812f539aea4f
drm: mali-dp: fix stride setting for multi-plane formats

Hardware has multiple (2 or 3, depending on model) stride
registers per layer; add a function that correctly takes that
into account. On hardware that only has 2 stride registers,
ensure that 3-plane (YUV) content has identical strides
for both chroma planes.

Signed-off-by: Mihail Atanassov <mihail.atanassov@arm.com>
[Removed smart layer stride setup, comment and commit message clarifications]
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
drivers/gpu/drm/arm/malidp_hw.c
drivers/gpu/drm/arm/malidp_hw.h
drivers/gpu/drm/arm/malidp_planes.c
drivers/gpu/drm/arm/malidp_regs.h