- 08 Feb, 2017 1 commit
-
-
Michael Thayer authored
Based on v4 by Alexandre Courbot <acourbot@nvidia.com> There is currently no reliable way to report failure to set a HW cursor. Still such failures can happen if e.g. the MODE_CURSOR DRM ioctl fails (which currently happens at least with modesetting on Tegra for format incompatibility reasons). As failures are currently handled by setting the HW cursor size to (0,0), the fallback to SW cursor will not happen until the next time the cursor changes and xf86CursorSetCursor() is called again. In the meantime, the cursor will be invisible to the user. This patch addresses that by adding _xf86CrtcFuncs::set_cursor_check and _xf86CursorInfoRec::ShowCursorCheck hook variants that return booleans. This allows to propagate errors up to xf86CursorSetCursor(), which can then fall back to using the SW cursor immediately. v5: Updated the patch to apply to current git HEAD, split up into two patches (server and modesetting driver) and adjusted the code slightly to match surrounding code. I also removed the new exported function ShowCursorCheck(), as instead just changing ShowCursor() to return Bool should not affect its current callers. Reviewed-by:
Adam Jackson <ajax@redhat.com> Signed-off-by:
Michael Thayer <michael.thayer@oracle.com>
-
- 06 Feb, 2017 3 commits
-
-
Chris Wilson authored
-
Chris Wilson authored
-
Chris Wilson authored
xf86RecolorCursor() may be called directly from XRecolorCursor as well as from xf86ScreenSetCursor(). In the latter case, the input lock is already held, but not for the former and so we need to add a wrapper function that acquires the input lock before performing xf86RecolorCursor() References: https://bugs.freedesktop.org/show_bug.cgi?id=99358
-
- 28 Oct, 2016 1 commit
-
-
Alex Goins authored
xf86CheckHWCursor() would dereference sPriv without NULL checking it. If Option "SWCursor" is specified, sPriv == NULL. In this case we should assume that HW cursors are not supported. Signed-off-by:
Alex Goins <agoins@nvidia.com> Reviewed-by:
Andy Ritger <aritger@nvidia.com> Signed-off-by:
Keith Packard <keithp@keithp.com>
-
- 13 Oct, 2016 2 commits
-
-
Michel Dänzer authored
Prevents the HW cursor from intermittently jumping around when the cursor image is changed while the cursor is being moved. This is hardly noticeable in normal operation but can be quite confusing when stepping through these codepaths in a debugger. Reviewed-by:
Hans de Goede <hdegoede@redhat.com>
-
Michel Dänzer authored
xf86CursorScreenRec::HotX/Y contain 0 for PRIME slave screens. Fixes incorrect HW cursor position on PRIME slave screens. Also hoist the hotspot translation out from xf86ScreenSet/MoveCursor to xf86Set/MoveCursor, since the hotspot position is a property of the cursor, not the screen. v2: * Squash patches 1 & 2 of the v1 series, since it's basically the same problem * Use the master screen's xf86CursorScreenRec::HotX/Y instead of CursorRec::bits->x/yhot, since CursorRec::bits can be NULL (Hans de Goede) Reviewed-by:
Hans de Goede <hdegoede@redhat.com>
-
- 13 Sep, 2016 2 commits
-
-
Dave Airlie authored
Currently with PRIME if we detect a secondary GPU, we switch to using SW cursors, this isn't optimal, esp for the intel/nvidia combinations, we have no choice for the USB offload devices. This patch checks on each slave screen if hw cursors are enabled, and also calls set cursor and move cursor on all screens. Cc: Aaron Plattner <aplattner@nvidia.com> Signed-off-by:
Dave Airlie <airlied@redhat.com> Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> Reviewed-by:
Keith Packard <keithp@keithp.com>
-
Dave Airlie authored
This is a preparation patch for adding prime hw-cursor support. Signed-off-by:
Dave Airlie <airlied@redhat.com> Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com>
-
- 30 Jun, 2015 1 commit
-
-
Dave Airlie authored
I doubt anyone builds with this turned off or has done for a long time. It helps my eyes bleed slightly less when reading the code, I've left the define in place as some drivers use it. Reviewed-by:
Aaron Plattner <aplattner@nvidia.com> Reviewed-by:
Alex Deucher <alexander.deucher@amd.com> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
- 12 Nov, 2014 1 commit
-
-
Peter Hutterer authored
sed -i "s/[ ]\+$//g" **/*.(c|h) happy reviewing... git diff -w is an empty diff. Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
- 25 Apr, 2014 1 commit
-
-
Keith Packard authored
Create load_cursor_image_check, load_cursor_argb_check, LoadCursorImageCheck and LoadCursorARGBCheck that can return failure and use them in preference to the old unchecked variants. Signed-off-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Hans de Goede <hdegoede@redhat.com> Reviewed-by:
Michael Thayer <michael.thayer@oracle.com>
-
- 03 Apr, 2014 1 commit
-
-
Michael Thayer authored
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>
-
- 12 Jan, 2014 1 commit
-
-
Keith Packard authored
This lets us stop using the 'pointer' typedef in Xdefs.h as 'pointer' is used throughout the X server for other things, and having duplicate names generates compiler warnings. Signed-off-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
- 10 Jul, 2012 1 commit
-
-
Daniel Stone authored
Commit 0c6987df in June 2008 disabled XAA offscreen pixmaps per default, as they were broken, leaving XAA only able to accelerate operations directly on the screen pixmap and nowhere else, eliminating acceleration for basically every modern toolkit, and any composited environment. So, it hasn't worked for over four years. No-one's even come close to fixing it. RIP. Signed-off-by:
Daniel Stone <daniel@fooishbar.org> Reviewed-by:
Dave Airlie <airlied@redhat.com> Reviewed-by:
Alex Deucher <alexdeucher@gmail.com>
-
- 21 May, 2012 1 commit
-
-
Dave Airlie authored
migrate to new helper API. This just wraps all the obvious uses of xf86Screens[pScreen->myNum], and should be fairly simple to review. v2: remove commented out lines. Reviewed-by:
Aaron Plattner <aplattner@nvidia.com> Reviewed-by:
Keith Packard <keithp@keithp.com> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
- 21 Mar, 2012 1 commit
-
-
Keith Packard authored
This is strictly the application of the script 'x-indent-all.sh' from util/modular. Compared to the patch that Daniel posted in January, I've added a few indent flags: -bap -psl -T PrivatePtr -T pmWait -T _XFUNCPROTOBEGIN -T _XFUNCPROTOEND -T _X_EXPORT The typedefs were needed to make the output of sdksyms.sh match the previous output, otherwise, the code is formatted badly enough that sdksyms.sh generates incorrect output. The generated code was compared with the previous version and found to be essentially identical -- "assert" line numbers and BUILD_TIME were the only differences found. The comparison was done with this script: dir1=$1 dir2=$2 for dir in $dir1 $dir2; do (cd $dir && find . -name '*.o' | while read file; do dir=`dirname $file` base=`basename $file .o` dump=$dir/$base.dump objdump -d $file > $dump done) done find $dir1 -name '*.dump' | while read dump; do otherdump=`echo $dump | sed "s;$dir1;$dir2;"` diff -u $dump $otherdump done Signed-off-by:
Keith Packard <keithp@keithp.com> Acked-by:
Daniel Stone <daniel@fooishbar.org> Acked-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 20 Sep, 2011 1 commit
-
-
Jamey Sharp authored
Use new per-screen privates API instead. Commit by Jamey Sharp and Josh Triplett. Signed-off-by:
Jamey Sharp <jamey@minilop.net> Signed-off-by:
Josh Triplett <josh@joshtriplett.org> Reviewed-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
- 12 May, 2010 1 commit
-
-
Mikhail Gusarov authored
The only remaining X-functions used in server are XNF*, the rest is converted to plain alloc/calloc/realloc/free/strdup. X* functions are still exported from server and x* macros are still defined in header file, so both ABI and API are not affected by this change. Signed-off-by:
Mikhail Gusarov <dottedmag@dottedmag.net> Reviewed-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
- 06 Oct, 2008 1 commit
-
-
Adam Jackson authored
-
- 27 Aug, 2008 1 commit
-
-
Eamon Walsh authored
Replaces the use of the screen pointer itself as the key, which was nice but won't work now that an array index is being stored.
-
- 06 May, 2008 1 commit
-
-
Peter Hutterer authored
This commit enables HW rendering for cursors again, but only for a single cursor. Other cursors can be created, however they will not be visible.
-
- 30 Aug, 2007 1 commit
-
-
Eamon Walsh authored
-
- 28 Aug, 2007 1 commit
-
-
Eamon Walsh authored
over to new system. Need to update documentation and address some remaining vestiges of old system such as CursorRec structure, fb "offman" structure, and FontRec privates.
-
- 18 Dec, 2006 1 commit
-
-
Peter Hutterer authored
Removing building mpx extension from Makefile.am
-
- 17 Nov, 2006 1 commit
-
-
Peter Hutterer authored
mi: added miMPPointers array to mipointer.c added DeviceIntPtr to all miPointerSpriteFuncs. Coming from miPointer we use inputInfo.pointer as standard value. ABI BREAK! ramdac: forcing failed HW Cursor initialisation. MPX needs software rendering. changes to use new miPointerSpriteFunc (this required externing inputInfo, should probably be fixed at a later point). RAC: changes to use new miPointerSpriteFuncs.
-
- 21 Jul, 2006 1 commit
-
-
Adam Jackson authored
-
- 10 Feb, 2006 1 commit
-
-
Eric Anholt authored
of (marginal) use in the drivers, and that usage remains.
-
- 03 Jul, 2005 2 commits
-
-
Daniel Stone authored
-
Daniel Stone authored
Add XSERV_t, TRANS_SERVER, TRANS_REOPEN to quash warnings. Add #include <dix-config.h> or <xorg-config.h>, as appropriate, to all source files in the xserver/xorg tree, predicated on defines of HAVE_{DIX,XORG}_CONFIG_H. Change all Xfont includes to <X11/fonts/foo.h>.
-
- 01 Jul, 2005 1 commit
-
-
Daniel Stone authored
-
- 20 Apr, 2005 1 commit
-
-
Daniel Stone authored
change "foo.h" to <X11/foo.h> for core headers, e.g. X.h, Xpoll.h; change "foo.h", "extensions/foo.h" and "X11/foo.h" to <X11/extensions/foo.h> for extension headers, e.g. Xv.h; change "foo.[ch]" to <X11/Xtrans/foo.[ch]> for Xtrans files.
-
- 23 Apr, 2004 1 commit
-
-
Egbert Eich authored
-
- 14 Mar, 2004 1 commit
-
-
Egbert Eich authored
-
- 05 Mar, 2004 1 commit
-
-
Egbert Eich authored
Reverted darwin/bundle/**/Credits.rtf to XFree86 versions to avoid future conflicts on ASCII but not humal readable files. (There should probably be separate CreditsXorg.rtf files) (Egbert Eich).
-
- 03 Mar, 2004 1 commit
-
-
Egbert Eich authored
-
- 26 Feb, 2004 2 commits
-
-
Egbert Eich authored
-
Egbert Eich authored
-
- 26 Nov, 2003 1 commit
-
-
Kaleb Keithley Keithley authored
-
- 25 Nov, 2003 1 commit
-
-
Kaleb Keithley Keithley authored
-