Skip to contentSkip to conversation

drm: sti: fix cursor coordinates

PATCH New Benjamin Gaignard 1 participant 1 message Jan 7, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 4/5 drm: sti: fix cursor coordinates

fix x/y typo while setting cursor coordinates

---
 drivers/gpu/drm/sti/sti_cursor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/sti/sti_cursor.c +1 -1
index 8078631..a19693a 100644
@@ -205,7 +205,7 @@ static void sti_cursor_atomic_update(struct drm_plane *drm_plane,
 	writel(cursor->height << 16 | cursor->width, cursor->regs + CUR_SIZE);
 
 	y = sti_vtg_get_line_number(*mode, dst_y);
-	x = sti_vtg_get_pixel_number(*mode, dst_y);
+	x = sti_vtg_get_pixel_number(*mode, dst_x);
 	writel((y << 16) | x, cursor->regs + CUR_VPO);
 
 	plane->status = STI_PLANE_UPDATED;
Signature · 6 lines
1.9.1

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel