[Bug 106935] [CHV] Mouse cursor flicker on external display, rendering artifacts under cursor

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Mar 1 18:27:47 UTC 2019


https://bugs.freedesktop.org/show_bug.cgi?id=106935

--- Comment #11 from Chris Wilson <chris at chris-wilson.co.uk> ---
commit 6afed33b2d673d88674f0c76efe500ae414e8e1b (upstream/master)
Author: Ville Syrjälä <ville.syrjala at linux.intel.com>
Date:   Fri Mar 1 11:26:07 2019 +0000

    sna: Switch back to hwcursor on the next cursor update

    Once we've switched to using the swcursor (possibly
    due to the cursor ioctl failing) we currently keep
    using the swcursor until the modeset.

    That's not particularly great as the swcursor has several
    issues. Apart from the (presumably expected) flicker,
    the cursor also tends to leave horrible trails behind
    around dri2/3 windows (happens with tearfree at least).

    To avoid some of that let's try to switch back to the hwcursor
    a bit sooner. We can do that neatly via the convenient swcursor
    block handler.

    v2 [ickle]: Apply the restoration after the screen update is complete.
    v3 [vsyrjala]: Push it back to restore_swcursor and remove the
    fullscreen redraw -- prevents terrible flickering in v2!

    References: https://bugs.freedesktop.org/show_bug.cgi?id=106935
    Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20190301/dd121c27/attachment.html>


More information about the intel-gfx-bugs mailing list