Add a return value to load_cursor_argb() to allow it to report failure
authorMichael Thayer <michael.thayer@oracle.com>
Mon, 31 Mar 2014 09:21:42 +0000 (11:21 +0200)
committerKeith Packard <keithp@keithp.com>
Thu, 3 Apr 2014 23:46:55 +0000 (16:46 -0700)
commit901fbfbbbd71c0d82080957f8ba09eebbc786f2b
tree968b7a427ae568c8d364b8f4239df9d1185f59f1
parent62ab4102260fd3342a0e5ae3a4f77b430af64f4e
Add a return value to load_cursor_argb() to allow it to report failure

load_cursor_argb() may need to be able to fail and have the server fall back
to a software cursor in at least the following circumstances.
1) The hardware can only support some ARGB cursors and this does not just
depend on cursor size.
2) Virtual hardware may not wish to pass through a cursor to the host at a
particular time but may wish to accept the same cursor at another time.
This patch adds a return value to the API and makes the server do the
software fall-back on failure.

Signed-off-by: Michael Thayer <michael.thayer@oracle.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
hw/xfree86/common/xf86Module.h
hw/xfree86/modes/xf86Crtc.h
hw/xfree86/modes/xf86Cursors.c
hw/xfree86/ramdac/IBM.c
hw/xfree86/ramdac/TI.c
hw/xfree86/ramdac/xf86Cursor.c
hw/xfree86/ramdac/xf86Cursor.h
hw/xfree86/ramdac/xf86CursorPriv.h
hw/xfree86/ramdac/xf86HWCurs.c