mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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>
This commit is contained in:
parent
4d6000edcd
commit
b70b332f14
@ -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],
|
||||
|
Loading…
x
Reference in New Issue
Block a user