mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 03:24:19 +02:00
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: 3a612765f4 ("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>
This commit is contained in:
parent
00a7f0d715
commit
7f9d4c0884
|
|
@ -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 |
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user