- Oct 26, 2024
-
-
It's not used by any module/driver, so no need to keep it exported. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <!1695>
-
- Oct 10, 2024
-
-
The symbol controls whether to include dix-config.h, and it's always set, thus we don't need it (and dozens of ifdef's) anymore. This commit only removes them from our own source files, where we can guarantee that dix-config.h is present - leaving the (potentially exported) headers untouched. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
- Apr 16, 2024
-
-
Since we already had to rename some of them, in order to fix name clashes on win32, it's now time to rename all the remaining ones. The old ones are still present as define's to the new ones, just for backwards compatibility. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <xorg/xserver!1355>
-
These aren't used by any drivers, so no need to export them. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <xorg/xserver!1380>
-
- Oct 30, 2019
-
-
This ensures that any prep work for the drawable we're about to read from is already done before we call down to GetImage. This should be no functional change as most of the callers with a non-trivial SourceValidate are already wrapping GetImage and doing the equivalent thing, but we'll be simplifying that shortly. More importantly this ensures that if any of that prep work would generate events - like automatic compositing flushing rendering to a parent pixmap which then triggers damage - then it happens entirely before we start writing the GetImage reply header. Note that we do not do the same for GetSpans, but that's okay. The only way to get to GetSpans is through miCopyArea or miCopyPlane - where the callers must already call SourceValidate - or miGetImage - which this commit now protects with SourceValidate. Fixes: xorg/xserver#902 Reviewed-by:
Michel Dänzer <mdaenzer@redhat.com>
-
- Mar 15, 2017
-
-
Adam Jackson authored
This code is using GetImage to accumulate a logical view of the window image (since the windows will be clipped to their containing screen), and then PutImage to load that back into the pixmap. What it wasn't doing was constructing a region for the obscured areas of the window and emitting graphics exposures for same. v2: Fix coordinate translation when the source is the root window v3: Create sourceBox with the right coordinates initially instead of translating (Keith Packard) v4: Clamp the region to 15 bits to avoid overflow (Keith Packard) Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
- Apr 29, 2016
-
-
Adam Jackson authored
-Wlogical-op now tells us: devices.c:1685:23: warning: logical ‘and’ of equal expressions Reviewed-by:
Julien Cristau <jcristau@debian.org> Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
- Apr 21, 2015
-
-
Alan Coopersmith authored
v2: remove now useless parentheses Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
Alan Coopersmith authored
It's going to multiply anyway, so if we have non-constant values, might as well let it do the multiplication instead of adding another multiply, and good versions of calloc will check for & avoid overflow in the process. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
- Nov 12, 2014
-
-
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>
-
- Oct 23, 2014
-
-
Signed-off-by:
Adam Jackson <ajax@redhat.com> Reviewed-by:
Julien Cristau <jcristau@debian.org> Signed-off-by:
Keith Packard <keithp@keithp.com>
-
- Oct 09, 2014
-
-
Adam Jackson authored
No DDX is overriding this and it's fairly absurd to expose it as a screen operation anyway. Reviewed-by:
Julien Cristau <jcristau@debian.org> Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
- Jan 12, 2014
-
-
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>
-
- Jul 10, 2012
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by:
Keith Packard <keithp@keithp.com> Tested-by:
Daniel Stone <daniel@fooishbar.org>
-
Alan Coopersmith authored
Casting return to (void) was used to tell lint that you intended to ignore the return value, so it didn't warn you about it. Casting the third argument to (char *) was used as the most generic pointer type in the days before compilers supported C89 (void *) (except for a couple places it's used for byte-sized pointer math). Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by:
Keith Packard <keithp@keithp.com> Tested-by:
Daniel Stone <daniel@fooishbar.org>
-
- Mar 21, 2012
-
-
If the typedef wasn't perfect, indent would get confused and change: foo = (SomePointlessTypedef *) &stuff[1]; to: foo = (SomePointlessTypedef *) & stuff[1]; Fix this up with a really naïve sed script, plus some hand-editing to change some false positives in XKB back. Signed-off-by:
Daniel Stone <daniel@fooishbar.org>
-
Comments inside of conditionals confuse indent to death. Which is fair enough really. Signed-off-by:
Daniel Stone <daniel@fooishbar.org>
-
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>
-
- Mar 10, 2011
-
-
Dave Airlie authored
This converts all the remaining 1->num loops to the macro, this removes nearly all the panoramiXNumScreens usage in loops, and is a step to replacing it. v2: move some from the other patch. Signed-off-by:
Dave Airlie <airlied@redhat.com> Reviewed-by:
Daniel Stone <daniel@fooishbar.org> Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Dave Airlie authored
This just uses the FOR_NSCREENS macro instead. v2: remove some of the 1->x loops. v3: drop the 1->0 loop, will rework later. Signed-off-by:
Dave Airlie <airlied@redhat.com> Reviewed-by:
Daniel Stone <daniel@fooishbar.org> Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Dave Airlie authored
This adds a new FOR_NSCREENS_FORWARD_SKIP, which skips the first element and is a common idiom throughout panoramiX code. It then adds a new inline function to hide id assignment to a panoramiX resource and cleans up lots of common repeated code. Signed-off-by:
Dave Airlie <airlied@redhat.com> Reviewed-by:
Daniel Stone <daniel@fooishbar.org> Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- Mar 09, 2011
-
-
Dave Airlie authored
this code appears in quite a few places, consolidate it into a macro in a header. v2: align braces with macro just above it, and with lines removed Signed-off-by:
Dave Airlie <airlied@redhat.com> Reviewed-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
- Nov 15, 2010
-
-
This fixes a typo introduced in commit 80b5d3a3. The pointer pDst was changed unintentionally to pWin from a copy/paste error. This resulted in all QT-based apps and some tcl/tk ones (like fontforge) to crash X 1.9 on starting up, when Xinerama was enabled. Bug report: https://bbs.archlinux.org/viewtopic.php?id=106125 Signed-off-by:
Elie Bleton <drozofil@gmail.com> Reviewed-by:
Adam Jackson <ajax@redhat.com> Reviewed-by:
Matt Turner <mattst88@gmail.com> Tested-by:
Linus Arver <linusarver@gmail.com>
-
- Jun 11, 2010
-
-
Keith Packard authored
Using type == DRAWABLE_WINDOW to differentiate between pixmaps and windows isn't sufficient as input-only windows will end up in the pixmap case. This patch changes a few more code paths to use WindowDrawable instead. Signed-off-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Jamey Sharp <jamey@minilop.net>
-
- Jun 10, 2010
-
-
This patch was generated by the following Perl code: perl -i -pe 's/([^_])return\s*\(\s*([^(]+?)\s*\)s*;(\s+(\n))?/$1return $2;$4/g;' Signed-off-by:
Mikhail Gusarov <dottedmag@dottedmag.net> Reviewed-by:
Jamey Sharp <jamey@minilop.net> Reviewed-by:
Daniel Stone <daniel@fooishbar.org> Signed-off-by:
Keith Packard <keithp@keithp.com>
-
- Jun 06, 2010
-
-
Mikhail Gusarov authored
Signed-off-by:
Mikhail Gusarov <dottedmag@dottedmag.net> Reviewed-by:
Marcin Baczyński <marbacz@gmail.com> Reviewed-by:
Daniel Stone <daniel@fooishbar.org> Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
Jamey Sharp authored
Signed-off-by:
Jamey Sharp <jamey@minilop.net> Reviewed-by:
Keith Packard <keithp@keithp.com>
-
Keith Packard authored
This is a combination of a huge mechanical patch and a few small fixups required to finish the job. They were reviewed separately, but because the server does not build without both pieces, I've merged them together at this time. The mechanical changes were performed by running the included 'fix-region' script over the whole tree: $ git ls-files | grep -v '^fix-' | xargs ./fix-region And then, the white space errors in the resulting patch were fixed using the provided fix-patch-whitespace script. $ sh ./fix-patch-whitespace Thanks to Jamey Sharp for the mighty fine sed-generating sed script. The hand-done changes involve removing functions from dix/region.c that duplicate inline functions in include/regionstr.h, along with their declarations in regionstr.h, mi.h and mispans.h. Reviewed-by:
Jamey Sharp <jamey@minilop.net> Signed-off-by:
Keith Packard <keithp@keithp.com>
-
- Jun 03, 2010
-
-
Jamey Sharp authored
This fuses two loops in each function, eliminating an intermediate MAXSCREENS-sized array from each. Aside from being more efficient, I believe this is equivalent to the previous implementation, since - each per-screen GC has the graphicsExposures flag set the same way, and - the REGION_* macros ignore their screen argument. Signed-off-by:
Jamey Sharp <jamey@minilop.net> Reviewed-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Tiago Vignatti <tiago.vignatti@nokia.com> Tested-by: Tiago Vignatti <tiago.vignatti@nokia.com> (i686 GNU/Linux)
-
Jamey Sharp authored
Many references to the dixScreenOrigins array already had the corresponding screen pointer handy, which meant they usually looked like "dixScreenOrigins[pScreen->myNum]". Adding a field to ScreenRec instead of keeping this information in a parallel array simplifies those expressions, and eliminates a MAXSCREENS-sized array. Since dix declared the dixScreenOrigins array, I figure allocating a screen private for these values is overkill. Signed-off-by:
Jamey Sharp <jamey@minilop.net> Reviewed-by:
Tiago Vignatti <tiago.vignatti@nokia.com> Tested-by: Tiago Vignatti <tiago.vignatti@nokia.com> (i686 GNU/Linux)
-
Jamey Sharp authored
This eliminates a dynamically-allocated MAXSCREENS-sized array. Signed-off-by:
Jamey Sharp <jamey@minilop.net> Reviewed-by:
Tiago Vignatti <tiago.vignatti@nokia.com> Tested-by: Tiago Vignatti <tiago.vignatti@nokia.com> (i686 GNU/Linux)
-
Jamey Sharp authored
Many references to the WindowTable array already had the corresponding screen pointer handy, which meant they usually looked like "WindowTable[pScreen->myNum]". Adding a field to ScreenRec instead of keeping this information in a parallel array simplifies those expressions, and eliminates a MAXSCREENS-sized array. Since dix uses this data, a screen private entry isn't appropriate. xf86-video-dummy currently uses WindowTable, so it needs to be updated to reflect this change. Signed-off-by:
Jamey Sharp <jamey@minilop.net> Reviewed-by:
Tiago Vignatti <tiago.vignatti@nokia.com> Tested-by: Tiago Vignatti <tiago.vignatti@nokia.com> (i686 GNU/Linux)
-
Jamey Sharp authored
Most references to the savedScreenInfo array already had the corresponding screen pointer handy, which meant they usually looked like "savedScreenInfo[pScreen->myNum]". Adding a field to ScreenRec instead of keeping this information in a parallel array simplifies those expressions, and eliminates a MAXSCREENS-sized array. Since dix uses this data, a screen private entry isn't appropriate. Signed-off-by:
Jamey Sharp <jamey@minilop.net> Reviewed-by:
Tiago Vignatti <tiago.vignatti@nokia.com> Tested-by: Tiago Vignatti <tiago.vignatti@nokia.com> (i686 GNU/Linux)
-
- May 19, 2010
-
-
Jamey Sharp authored
Signed-off-by:
Jamey Sharp <jamey@minilop.net> Reviewed-by:
Adam Jackson <ajax@redhat.com>
-
Jamey Sharp authored
Rather than always returning BadValue, associate an error status like BadWindow with a resource type like RT_WINDOW, and return the appropriate one for the requested type. This patch only touches the core protocol resource types. Others still return BadValue and need to be mapped appropriately. dixLookupResourceByType can now return BadImplementation, if the caller asked for a resource type that has not been allocated in the server. Signed-off-by:
Jamey Sharp <jamey@minilop.net> Reviewed-by:
Adam Jackson <ajax@redhat.com>
-
- May 14, 2010
-
-
Jamey Sharp authored
Just let Dispatch() check for a noClientException, rather than making every single dispatch procedure take care of it. Signed-off-by:
Jamey Sharp <jamey@minilop.net> Reviewed-by:
Daniel Stone <daniel@fooishbar.org>
-
Jamey Sharp authored
Signed-off-by:
Jamey Sharp <jamey@minilop.net> Reviewed-by:
Keith Packard <keithp@keithp.com>
-
- May 12, 2010
-
-
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>
-
- Apr 27, 2010
-
-
Jamey Sharp authored
This header doesn't seem to be used outside the server tree, so I don't think anything was depending on these except what I've fixed in this patch. FORCE_ROOT is not used anywhere, and never has been in all the history that's in git. ajax removed its FORCE_WIN and FORCE_CMAP companions three years ago, in 04b87d6d. BREAK_IF and IF_RETURN expanded to exactly the keywords in their names, which is silly. They were rarely used and served only to make callers inconsistent with the idioms used elsewhere in the server. Signed-off-by:
Jamey Sharp <jamey@minilop.net> Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
- Jul 14, 2009
-
-
Peter Hutterer authored
Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net>
-