drm: mali-dp: Add plane offset to the plane's physical start address register
authorLiviu Dudau <Liviu.Dudau@arm.com>
Wed, 25 Jan 2017 17:40:02 +0000 (17:40 +0000)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Thu, 26 Jan 2017 15:46:19 +0000 (15:46 +0000)
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

index 8845647d5befaa1de2159ba124ee2fb332b52f70..837874e793342e881e82605fb0802c30b8ac2384 100644 (file)
@@ -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],