summaryrefslogtreecommitdiff
path: root/hw/xnest/Keyboard.c
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2015-01-04 23:27:32 -0800
committerKeith Packard <keithp@keithp.com>2015-01-10 14:45:09 +1300
commit4e12d7b6f4489fa06475465993a3e1e1d896390b (patch)
treee4cab91e6daa7733b91f448dd5ba9d568c71111f /hw/xnest/Keyboard.c
parentb058dec281568d6a9c5b5e230c20eed096cbdc6d (diff)
modesetting: Update the cursor without hiding it
In the new KMS APIs, the legacy drmModeSetCursor ioctl actually waits for a vblank after changing the cursor image before returning, meaning that the X server, in attempting to hide the cursor before updating its image, actually makes that hide *visible* for a full vblank. It's unknown why the X server does this by default, but turn it off. If we're with a legacy driver that doesn't support the modern drmModeSetCursor by waiting for a vblank before returning, we're going to get a tiny bit of tearing on the cursor plane. But between tearing with a new cursor image and tearing with a blank cursor image, I'd rather the former. The only proper solution to this is an atomic ioctl that page flips all planes, including the cursor plane, at vblank time and at the same time. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'hw/xnest/Keyboard.c')
0 files changed, 0 insertions, 0 deletions