xserver/hw/xfree86/drivers/modesetting
Jasper St. Pierre 4e12d7b6f4 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>
2015-01-10 14:45:09 +13:00
..
Makefile.am modesetting: Add vblank synchronization support when using Present. 2014-12-25 13:39:19 -08:00
dri2.c modesetting: Include glamor.h from driver.h. 2014-12-25 13:39:17 -08:00
driver.c modesetting: Update the cursor without hiding it 2015-01-10 14:45:09 +13:00
driver.h modesetting: Add vblank synchronization support when using Present. 2014-12-25 13:39:19 -08:00
drmmode_display.c modesetting: Include glamor.h from driver.h. 2014-12-25 13:39:17 -08:00
drmmode_display.h modesetting: Track the CRTC's DPMS mode. 2014-12-25 13:39:12 -08:00
dumb_bo.c modesetting: Drop dumb_bo::map_count field and dead unmap code. 2014-12-11 11:26:19 -08:00
dumb_bo.h modesetting: Drop dumb_bo::map_count field and dead unmap code. 2014-12-11 11:26:19 -08:00
modesetting.man modesetting: Add support for rendering using glamor. 2014-10-09 09:48:51 +02:00
present.c modesetting: Fix build with --disable-glamor. 2015-01-01 10:52:30 -08:00
vblank.c modesetting: Add vblank synchronization support when using Present. 2014-12-25 13:39:19 -08:00