drm/rockchip: vop: fix crtc size in plane check
authorJohn Keeping <john@metanate.com>
Fri, 4 Mar 2016 11:04:03 +0000 (11:04 +0000)
committerMark Yao <mark.yao@rock-chips.com>
Mon, 28 Mar 2016 06:48:29 +0000 (14:48 +0800)
commit92915da647be831ddbaa7e03e7528d921ec7f8aa
tree37d7fda8823aa289665f5ebe633cc41f87dad083
parent4604202ca8d2a5e33b4bca0812b5d92975ed1bd8
drm/rockchip: vop: fix crtc size in plane check

If the geometry of a crtc is changing in an atomic update then we must
validate the plane size against the new state of the crtc and not the
current size, otherwise if the crtc size is increasing the plane will be
cropped at the previous size and will not fill the screen.

Signed-off-by: John Keeping <john@metanate.com>
drivers/gpu/drm/rockchip/rockchip_drm_vop.c