]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
drm: hdlcd: Fix the calculation of the scanout start address
authorLiviu Dudau <Liviu.Dudau@arm.com>
Wed, 8 Mar 2017 16:10:19 +0000 (16:10 +0000)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Mon, 27 Mar 2017 13:55:58 +0000 (14:55 +0100)
commit1de3cd4fb49f3463679c49afe0aa9ceb133f3e49
tree6f5bfd4ce401c28778e605bda938559fedb1c66c
parentc02ed2e75ef4c74e41e421acb4ef1494671585e8
drm: hdlcd: Fix the calculation of the scanout start address

The calculation of the framebuffer's start address was wrongly using
the CRTC's x and y position rather than the one of the source
framebuffer. To fix that we need to update the plane_check code to
call drm_plane_helper_check_state() to clip the src and dst coordinates.
While there so some minor cleanup of redundant freeing of
devm_alloc-ated memory.

Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
drivers/gpu/drm/arm/hdlcd_crtc.c