~vcs-imports/xserver-xorg-video-intel/master

Viewing all changes in revision 8551.

  • Committer: Chris Wilson
  • Author(s): Ville Syrjälä
  • Date: 2019-03-01 18:22:07 UTC
  • Revision ID: git-v1:6afed33b2d673d88674f0c76efe500ae414e8e1b
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@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: