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)
commit23f9455157f62e2fc7fbe7654717bcb70eee543d
tree67cf5e082c13a2100ae66c064e27b1d28c480cd9
parent8f7ca5409063ade228a8ea0cc77b5fe9877f8cf0
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