]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b333db6346a83c5c4d77fa270c21efc1774072a
tree069ddbbd3ddef93fecb500b5f3ff842cd634679a
parent19cbcafcfb3777581f1505ce4b0967d8923cec10
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