Eamon Walsh
d7c5e8bfc1
Modified performance patches from Arjan van de Ven <arjan@infradead.org>
...
Subject: [PATCH] fix some performance gaps in Xace
The XaceHook function is used in several hotpaths.
The problem with it (performance wise) is twofold:
* The XaceHook function has a big switch() statement for the hook number in it
* The XaceHook function uses varargs to reassemble the final dispatch arguments again
Both are expensive operations... for something that is known at compile time
This patch turns the hotpath XaceHook call into a direct call to avoid
the switch and varargs; this gives me over 10% performance gain
on the x11perf benchmark.
2007-11-06 16:26:09 -05:00
Dodji Seketeli
aaa50b6411
resync with 'master'
2007-11-06 16:26:25 +01:00
Dodji Seketeli
868e303630
Xephyr: fix a crash when using xrandr twice
...
* hw/kdrive/ephyr/ephyr.c:
(ephyrScreenFini): don't forget to
free shadowfb data (if necessary) upon server is reset.
2007-11-06 16:24:46 +01:00
Elvis Pranskevichus
ddce48ede0
Config: D-Bus: Fix dbus_bus_request_name failure check
...
The code in connect_hook incorrectly checks for dbus_bus_request_name failure.
The dbus_bus_request_name error indicator is -1, not 0. This leads
to subsequent assertion failure in libdbus.
2007-11-06 09:40:36 +00:00
Eamon Walsh
a52c9b2a59
Merge branch 'master' into XACE-SELINUX
...
Conflicts:
dix/dispatch.c
dix/property.c
hw/xfree86/common/xf86VidMode.c
include/xkbsrv.h
render/glyph.c
xkb/xkbActions.c
2007-11-05 19:08:36 -05:00
Adam Jackson
58332894c0
Export the server ABI versions from xorg-server.pc
2007-11-05 17:18:46 -05:00
Eamon Walsh
c7e18beb3c
xselinux: Register SELinux extension protocol names.
2007-11-05 15:02:05 -05:00
Dodji Seketeli
632c33c5c1
pull 'master'
2007-11-05 17:53:04 +01:00
Dodji Seketeli
4113f040c5
GL: fix crash at mesa destruction time
...
* GL/glx/glxglcore.c:
(_glXMesaScreenDestroy): delete the same amount of visuals
that those which were created in createMesaVisuals().
2007-11-05 17:33:01 +01:00
Daniel Stone
dda10c9066
Remove all traces of external RGB database (and Speedo)
...
Remove all references to an external RGB database (which hasn't been enabled
for a very long time). Also get rid of some references to Speedo fonts.
2007-11-05 16:28:35 +00:00
Dodji Seketeli
6ff79ea5f7
Xephyr: fix some DRI build breakage
2007-11-05 16:46:49 +01:00
Daniel Stone
5e363500c8
OS: Remove ALLOCATE_LOCAL from os.h
...
Remove ALLOCATE_LOCAL_FALLBACK and DEALLOCATE_LOCAL_FALLBACK from os.h, and
remove the include of Xalloca.h as well.
2007-11-05 14:38:28 +00:00
Daniel Stone
83e5d9e75d
DIX: Remove last alloca call
...
Replace with heap allocations.
2007-11-05 14:36:54 +00:00
Daniel Stone
1179ddea94
EXA: Remove usage of alloca
...
Replace with heap allocations.
2007-11-05 14:36:36 +00:00
Daniel Stone
1eb6a1d0d2
XTrap: Remove usage of alloca
...
Replace with xalloc/xfree.
2007-11-05 14:34:47 +00:00
Daniel Stone
934281126f
Xext: Remove usage of alloca
...
Replace with heap allocations.
2007-11-05 14:34:46 +00:00
Daniel Stone
fb32bb9839
Xi: Remove usage of alloca
...
Replace with xalloc/xfree.
2007-11-05 14:34:46 +00:00
Daniel Stone
683ee1776d
afb: Remove usage of alloca
...
Replace with heap allocations.
2007-11-05 14:34:45 +00:00
Daniel Stone
ca75261bee
cfb: Remove usage of alloca
...
Replace with xalloc/xfree.
2007-11-05 14:34:45 +00:00
Daniel Stone
914922fd61
DIX: Remove usage of alloca
...
Replace with heap allocations.
2007-11-05 14:34:43 +00:00
Daniel Stone
3b77689266
EXA: Remove usage of alloca
...
Replace with heap allocations.
2007-11-05 14:34:43 +00:00
Daniel Stone
34cdf06e4c
fb: Remove usage of alloca
...
Replace with heap storage.
2007-11-05 14:34:42 +00:00
Daniel Stone
733d42065f
XFree86: Remove usage of alloca
...
Replace with heap allocations.
2007-11-05 14:34:42 +00:00
Daniel Stone
caf5450634
KDrive: Remove usage of alloca
...
Replace with heap allocations.
2007-11-05 14:34:42 +00:00
Daniel Stone
d57060f167
DMX: Remove usage of alloca
...
Replace with heap allocations.
2007-11-05 14:34:42 +00:00
Daniel Stone
def6f74f2d
Xvfb: Remove usage of alloca
...
Replace with heap allocations
2007-11-05 14:34:42 +00:00
Daniel Stone
259f4c36d5
Xprint: Remove usage of alloca
...
Replace with heap-based allocations.
2007-11-05 14:34:42 +00:00
Daniel Stone
1c84337af0
Xwin: Remove usage of alloca
...
Replace with heap allocations.
2007-11-05 14:34:42 +00:00
Daniel Stone
f7d5c292e4
mfb: Remove usage of alloca
...
Replace with heap-based allocations.
2007-11-05 14:34:42 +00:00
Daniel Stone
be9ee17f96
mi: Remove usage of alloca
...
Replace with heap allocations.
2007-11-05 14:34:41 +00:00
Daniel Stone
3633ae6efb
Damage: Remove usage of alloca
...
Replace with heap allocations.
2007-11-05 14:34:41 +00:00
Daniel Stone
2761c10331
OS: Remove usage of alloca
...
Replace with heap allocations.
2007-11-05 14:34:41 +00:00
Daniel Stone
2d738efb95
RandR: Remove usage of alloca
...
Replace with heap allocations.
2007-11-05 14:34:41 +00:00
Daniel Stone
3c1d2fdeff
Record: Remove usage of alloca
...
Replace with xalloc/xfree.
2007-11-05 14:34:41 +00:00
Daniel Stone
e0491f470e
Render: Remove usage of alloca
...
Replace it with heap-based allocations.
2007-11-05 14:34:41 +00:00
Daniel Stone
59774af86b
XKB: Remove usage of alloca
...
alloca has no way to return failure, and instead can possibly arbitrarily
overflow the stack. Let's avoid that one.
2007-11-05 14:34:41 +00:00
Ben Byer
6e4f5cf83f
changing ALLOCATE_LOCAL to xalloc to prevent stack overflow
2007-11-05 05:53:34 -08:00
Ben Byer
b1764ddf13
pulling more patches over from xorg-xserver-1.2-apple branch
2007-11-05 05:45:21 -08:00
Ben Byer
10fde62fc8
more CVS tags
2007-11-05 05:45:21 -08:00
Ben Byer
27ecb89250
Removed CVS tags.
2007-11-05 05:45:21 -08:00
Aaron Plattner
f2e310132f
Add CreatePixmap allocation hints.
...
These hints allow an acceleration architecture to optimize allocation of certain
types of pixmaps, such as pixmaps that will serve as backing pixmaps for
redirected windows.
2007-11-04 16:11:28 -08:00
Markku Vire
3f1b6765aa
Config: HAL: Touchpads are pointers too
...
Treat touchpads -- not just mice -- as pointer devices.
2007-11-04 16:46:21 +00:00
Mark Vytlacil
41c3069f7c
XFree86: Input: Save/restore errno around SIGIO (bug #10683 )
...
Make sure errno is saved and restored from the SIGIO handler, so errors
from system calls in input handlers don't break the interrupted code.
2007-11-04 16:46:21 +00:00
Ben Byer
ff9929ed48
pulling in changes from xorg-server-1.2-apple branch
2007-11-04 05:13:19 -08:00
Ben Byer
181468db92
add missing null-pointer checks
2007-11-04 04:50:26 -08:00
Matthias Hopf
4d0f35c81d
Always duplicate mode name when duplicating a mode.
...
If the originating mode didn't have a name, we would end up with the name of
the original mode being setup correctly, but with the name of the copy still
being NULL.
2007-11-02 19:27:32 +01:00
Adam Jackson
dfb1cce28a
Restore build of xf8_16bpp.
...
It doesn't link against cfb, so don't conditionalize its build against cfb.
2007-11-02 12:51:56 -04:00
Kristian Høgsberg
7a0555e9bb
Fix crash in xf86InitOrigins()
...
In a multihead setup, if only the first screen can be
initialized, but the second screen is mentioned first in the
ServerLayout section, the xf86InitOrigins() function will crash
because the screen referred to in the e.g. "RightOf" part is
non-existent.
2007-11-02 12:06:09 -04:00
Adam Jackson
5b41d4e60b
Don't filter modes away during VBE mode list construction.
...
Pass all VBE modes back up to the driver, on the assumption that it
knows how to filter modes intelligently.
2007-11-02 12:05:58 -04:00
Adam Jackson
c095da04fe
Fix magic number in fbdevhw
...
The transformation between fbdev and xfree86 mode timings needs to be
invertible, otherwise Xen and other framebuffers that don't have real
pixel clocks won't initialize.
2007-11-02 12:05:41 -04:00