The cursor should be placed at (x + hot_x, y + hot_y) to allow partial
display of a cursor.
Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
(cherry picked from commit
05735e9ff48327e80a3f17f0aa1dc21a26f480d1)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
struct dc_hw_cursor cursor;
cursor.address = plane->dma_addr[0];
- cursor.x = state->crtc_x;
- cursor.y = state->crtc_y;
+ cursor.x = state->crtc_x + drm_fb->hot_x;
+ cursor.y = state->crtc_y + drm_fb->hot_y;
cursor.hot_x = drm_fb->hot_x;
cursor.hot_y = drm_fb->hot_y;
cursor.display_id = to_vs_display_id(dc, state->crtc);