xserver-multidpi/hw/xfree86/drivers/modesetting
Michael Thayer 3abf791ab8 modesetting: only fall back to drmModeSetCursor() on -EINVAL
This change effectively reverts commit 074cf58.  We were falling back from
drmModeSetCursor2() to drmModeSetCursor() whenever the first failed.  This
fall-back only makes sense on pre-mid-2013 kernels which implemented the
cursor_set hook but not cursor_set2, and in this case the call to
drmModeSetCursor2() will always return -EINVAL.  Specifically, a return
value of -ENXIO usually means that neither are supported.

Signed-off-by: Michael Thayer <michael.thayer@oracle.com>
[hdegoede@redhat.com: initialize ret to -EINVAL]
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2016-09-28 14:53:39 -04:00
..
dri2.c modesetting: Implement DRI2InfoRec version 9 callbacks 2016-09-13 11:18:38 -04:00
driver.c xfree86: small memory leaks fixes 2016-09-28 14:53:39 -04:00
driver.h modesetting: fix compile error when --disable-glamor 2016-09-16 08:54:22 -07:00
drmmode_display.c modesetting: only fall back to drmModeSetCursor() on -EINVAL 2016-09-28 14:53:39 -04:00
drmmode_display.h modesetting: add DRI2 page flip support 2016-09-02 13:58:09 -04:00
dumb_bo.c modesetting: Include dix-config.h from dumb_bo.c 2015-05-12 08:02:11 -07:00
dumb_bo.h modesetting: Drop dumb_bo::map_count field and dead unmap code. 2014-12-11 11:26:19 -08:00
Makefile.am modesetting: move ms_do_pageflip to pageflip.c 2016-09-02 13:56:10 -04:00
modesetting.man modesetting: Add more missing options to man page. 2015-08-13 00:36:12 +01:00
pageflip.c modesetting: fix compile error when --disable-glamor 2016-09-16 08:54:22 -07:00
present.c modesetting: add DRI2 page flip support 2016-09-02 13:58:09 -04:00
sh3224.c modesetting: Implement 32->24 bpp conversion in shadow update 2016-07-02 09:28:04 +02:00
sh3224.h modesetting: Implement 32->24 bpp conversion in shadow update 2016-07-02 09:28:04 +02:00
vblank.c modesetting: Fall back to primary crtc for vblank for drawables on slave outputs 2016-09-13 11:18:43 -04:00