Commit 7f9d4c08 authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915: Fix i845/i865 cursor width

The change from the uapi coordinates to the internal coordinates
broke the cursor on i845/i865 due to src and dst getting swapped.
Fix it.

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fixes: 3a612765 ("drm/i915: Remove cursor use of properties for coordinates")
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191028113036.27553-1-ville.syrjala@linux.intel.comReviewed-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
parent 00a7f0d7
...@@ -10947,7 +10947,7 @@ static void i845_update_cursor(struct intel_plane *plane, ...@@ -10947,7 +10947,7 @@ static void i845_update_cursor(struct intel_plane *plane,
unsigned long irqflags; unsigned long irqflags;
if (plane_state && plane_state->base.visible) { if (plane_state && plane_state->base.visible) {
unsigned int width = drm_rect_width(&plane_state->base.src); unsigned int width = drm_rect_width(&plane_state->base.dst);
unsigned int height = drm_rect_height(&plane_state->base.dst); unsigned int height = drm_rect_height(&plane_state->base.dst);
cntl = plane_state->ctl | cntl = plane_state->ctl |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment