drm/i915: Fix i845/i865 cursor width
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 28 Oct 2019 11:30:31 +0000 (13:30 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 29 Oct 2019 12:54:51 +0000 (14:54 +0200)
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: 3a612765f423 ("drm/i915: Remove cursor use of properties for coordinates")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191028113036.27553-1-ville.syrjala@linux.intel.com
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/i915/display/intel_display.c

index 9dce2e9e53768735eb963a348e2f21bd6f062828..e56a75c070437d8f84f18620de65fe1b76581b14 100644 (file)
@@ -10947,7 +10947,7 @@ static void i845_update_cursor(struct intel_plane *plane,
        unsigned long irqflags;
 
        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);
 
                cntl = plane_state->ctl |