drm/msm/mdp5: fix cursor ROI
authorRob Clark <robdclark@gmail.com>
Tue, 24 Feb 2015 19:47:57 +0000 (14:47 -0500)
committerRob Clark <robdclark@gmail.com>
Wed, 4 Mar 2015 23:23:40 +0000 (18:23 -0500)
commit58560890b3e33d789c4f13a10324af9c85c52308
tree069ddbbd3ddef93fecb500b5f3ff842cd634679a
parent5b2e2b6c5e542f7334dcaeb5b577d8328a5f2fc0
drm/msm/mdp5: fix cursor ROI

If cursor is set near the edge of the screen, it is not valid to use the
new cursor width/height as the ROI dimensions.  Split out the ROI calc
and use it both cursor_set and cursor_move.

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c