aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/arm
diff options
context:
space:
mode:
authorLiviu Dudau <Liviu.Dudau@arm.com>2017-01-25 17:40:02 +0000
committerLiviu Dudau <Liviu.Dudau@arm.com>2017-01-26 15:46:19 +0000
commitb70b332f14b704b22894571bc422812f539aea4f (patch)
tree7ad9878828c79a2d28c1c8f9167f654a08bae60e /drivers/gpu/drm/arm
parentdrm: mali-dp: Check for sufficient address space (diff)
downloadlinux-dev-b70b332f14b704b22894571bc422812f539aea4f.tar.xz
linux-dev-b70b332f14b704b22894571bc422812f539aea4f.zip
drm: mali-dp: Add plane offset to the plane's physical start address register
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>
Diffstat (limited to 'drivers/gpu/drm/arm')
-rw-r--r--drivers/gpu/drm/arm/malidp_planes.c1
1 files changed, 1 insertions, 0 deletions
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],