mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] drm: mali-dp: Add plane offset to the plane's physical start address register
@ 2017-01-26 15:31 Liviu Dudau
  2017-01-26 15:31 ` [PATCH 2/2] drm: mali-dp: fix stride setting for multi-plane formats Liviu Dudau
  0 siblings, 1 reply; 2+ messages in thread
From: Liviu Dudau @ 2017-01-26 15:31 UTC (permalink / raw)
  To: Brian Starkey
  Cc: Mali DP Maintainers, David Airlie, DRI devel, LKML, Mihail Atanassov

Add the fb->offset[] value to the plane's physical start address
registe. Without that, packed formats are rendered incorrectly.

Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
---
 drivers/gpu/drm/arm/malidp_planes.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/arm/malidp_planes.c b/drivers/gpu/drm/arm/malidp_planes.c
index 8845647d5bef..837874e79334 100644
--- a/drivers/gpu/drm/arm/malidp_planes.c
+++ b/drivers/gpu/drm/arm/malidp_planes.c
@@ -197,6 +197,7 @@ static void malidp_de_plane_update(struct drm_plane *plane,
 		ptr = mp->layer->ptr + (i << 4);
 
 		obj = drm_fb_cma_get_gem_obj(plane->state->fb, i);
+		obj->paddr += plane->state->fb->offsets[i];
 		malidp_hw_write(mp->hwdev, lower_32_bits(obj->paddr), ptr);
 		malidp_hw_write(mp->hwdev, upper_32_bits(obj->paddr), ptr + 4);
 		malidp_hw_write(mp->hwdev, plane->state->fb->pitches[i],
-- 
2.11.0

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-26 15:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-26 15:31 [PATCH 1/2] drm: mali-dp: Add plane offset to the plane's physical start address register Liviu Dudau
2017-01-26 15:31 ` [PATCH 2/2] drm: mali-dp: fix stride setting for multi-plane formats Liviu Dudau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®