]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/mdp5: negative x/y in cursor move
authorCarsten Behling <carsten.behling@googlemail.com>
Mon, 16 Jul 2018 17:49:56 +0000 (19:49 +0200)
committerRob Clark <robdclark@gmail.com>
Wed, 25 Jul 2018 11:51:05 +0000 (07:51 -0400)
commitb8c85d5c2b8c038ad4b57cfd4e8d3d8421456226
tree67cf5e082c13a2100ae66c064e27b1d28c480cd9
parenta70583d29af1cb14a81975dd94e25191a8e63504
drm/msm/mdp5: negative x/y in cursor move

modesetting X11 driver may provide negative x/y cordinates in
mdp5_crtc_cursor_move call when rotation is enabled.

Cursor buffer can overlap down to its negative width/height.

ROI has to be recalculated for negative x/y indicating using the
lower/right corner of the cursor buffer and hotspot must be set
in MDP5_LM_CURSOR_XY_SRC_Y MDP5_LM_CURSOR_XY_SRC_X.

Signed-off-by: Carsten Behling <carsten.behling@gmail.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c