Commit Graph

5941 Commits

Author SHA1 Message Date
Ian Romanick
b84a27fd9f VBO: Regenerate files based on recent changes to gl_API.xml
Since GL_ARB_vertex_buffer_object protocol isn't supported yet, these
changes are innocuous.
2008-07-02 06:25:03 -07:00
Adam Jackson
703a9645f3 Auf wiedersehen, KAA. 2008-07-01 17:50:48 -04:00
Jeremy Uejio
c8216aede6 Sun bug #6685465: Xephyr uses wrong or bad colortable in 8-bit mode
<http://bugs.opensolaris.org/view_bug.do?bug_id=6685465>

This bug is caused by Xephyr not handling the RGB byte order correctly
of the server where Xephyr is displaying on. The previous code just
assumed that the order was RGB and did not take into account that
Xservers may use different order (such as BGR).

The fix is to add a function to calculate the byte order and bits
to shift based on the visual mask and the visual bits_per_rgb (which
is usually 8, but could be server dependent).  Since the shifts won't
change once the display connection has been made, I can cache these
values so that Xephyr doesn't have to keep recalculating them everytime
it tries to translate the Xephyr colormap entries for Xephyr clients to
the actual server colormap entries (i.e. calling the function
hostx_set_cmap_entry() repeatedly for every colormap entry).
2008-07-01 13:37:12 -07:00
Aaron Plattner
2e8daee053 Work around the DIX losing mmWidth/mmHeight for RandR 1.1 DDXen.
RandR 1.1 has a physical size for each mode.  It used to be that the DIX would
remember these modes and pass them back up to the DDX when changing the screen
configuration.  The DDX uses RR_GET_MODE_MM to query the driver for the physical
dimensions of the screen, allowing it to preserve the DPI.

With RandR 1.2, the physical dimensions are stored as part of the output, rather
than per mode.  The DIX only uses the sizes passed in from the DDX to select the
mode pool for the "default" output, and forgets the physical sizes.  Then, when
reconfiguring the screen, it makes up a new RRScreenSizeRec using the dimensions
from the output, screwing up the DPI.

This change works around this problem by ignoring the DIX and querying the real
size from the driver.
2008-07-01 09:08:22 -07:00
Adam Jackson
e2bbf2d248 Don't try to load DRI2 if built without it. 2008-07-01 12:01:56 -04:00
Adam Jackson
66d7c9de82 Declare xf86InterpretEEDID() properly. 2008-07-01 10:55:54 -04:00
root
e4335e876d Revert "XInput ABI is 2.1, not 3.1."
This reverts commit 76576c87b0.
which was an incorrect revert of previous ABI bumps. Those
responsible for the accidental ABI bumps in both directions
have all been sacked.

This allows xf86-input-mouse to build again, for example.
2008-06-30 15:42:33 -07:00
Carl Worth
6447f80c17 Use AC_CHECK_LIB before PKG_CHECK_MODULES for openssl
Previously, the code was using PKG_CHECK_EXISTS before PKG_CHECK_MODULES,
(to cater to OpenBSD systems that include openssl by default but without
a .pc file). But this meant that systems that didn't have openssl installed
at all would not get any error message at configure time.

Now, if the SHA1_Init function is found in -lcrypto without any additional
flags, then that's used. Otherwise, pkg-config is used to find the right
flags to link against libcrypto. And if that fails, a nice error message
is now generated.
2008-06-30 13:19:19 -07:00
Adam Jackson
76576c87b0 XInput ABI is 2.1, not 3.1. 2008-06-30 16:10:37 -04:00
Adam Jackson
bed12dd3df Do EEDID in RANDR 1.2. 2008-06-30 16:04:54 -04:00
Adam Jackson
4fc18b5fc3 Hexdump the whole EDID block if extensions present. 2008-06-30 16:04:54 -04:00
Adam Jackson
b4fbc31e10 Actually fetch all blocks of EEDID if asked to. 2008-06-30 16:04:54 -04:00
Adam Jackson
211e2bdcc6 Bump ABI minor numbers for the devPrivate ABI functions. 2008-06-30 10:29:17 -04:00
Dan Nicholson
d6b8d9eaff DRI: Ensure we have the DRI headers from Mesa
Change the DRI configure check to look for the dri pkg-config file. This
prevents people who built an Xlib libGL from bombing later in the build.
2008-06-29 10:11:40 -07:00
Eamon Walsh
7ddfb2f158 Fix a leak of window devPrivates in window.c/CrushTree(). 2008-06-27 23:10:12 -04:00
Peter Hutterer
15e4b6c574 input: for non-device events (e.g. DevicePresence) use MAX_DEVICES as id.
Using id = 0 only worked pre-MPX since XInput didn't allow XOpenDevice for the
core devices (0 and 1). Now we can now legally register for events so we may
overwrite our device-independent classes with the ones selected for the VCP.

So, increase the EMASKSIZE to MAX_DEVICES + 1 and use MAX_DEVICES as the ID
when we don't have a device.
2008-06-26 12:53:05 +09:30
Peter Hutterer
f0c56ffd98 dix: don't dereference dev->key if it doesn't exist.
This may happen if we check for a passive grab on a floating pointer device.
2008-06-26 12:53:05 +09:30
Alan Coopersmith
01f0b9c978 xf86GetOptValFreq wants a pointer to double, but maxPixClock is an int 2008-06-25 19:23:20 -07:00
Alan Coopersmith
7ce6dcef11 Don't log null device name in XkbDDXLoadKeymapByNames 2008-06-25 15:06:49 -07:00
Adam Jackson
cbc20d92de XTrap delenda est. 2008-06-25 09:52:36 -04:00
Peter Hutterer
a81b5ce452 dix: free memory associated with the EventList. #16507
Un-deprecates CloseDownEvents.

X.Org Bug 16507 <http://bugs.freedesktop.org/show_bug.cgi?id=16507>
2008-06-25 20:03:31 +09:30
Peter Hutterer
3a2beb2f86 dix: InitEventList does not need to be _X_EXPORT. 2008-06-25 20:03:31 +09:30
Tiago Vignatti
385943e0e9 Set --enable-builtin-fonts as default.
Some reasons to embed fonts by default:
1. X server doesn't pick a good default font path so it's easiest just
to built in the core fonts and let new X hackers more happy. Developers
and distro guys are wise enough to just set --disable-builtin-fonts
when they want.

2. Seems that this is by far the most popular FAQ
(http://www.x.org/wiki/FAQErrorMessages).

3. No one gave a good argument to not do this:
    http://lists.freedesktop.org/archives/xorg/2008-May/035479.html
2008-06-24 23:13:32 -03:00
Tiago Vignatti
f3b29efc4d Remove NOFONTSERVERACCESS macro
dix: this is semantically different but it goes through the same path in
the code.
2008-06-24 23:10:56 -03:00
Tiago Vignatti
2ff7eb4995 xfree86: kill INHERIT_LOCK_STATE macro.
I don't know how this survived so long. Google didn't show
anything usable related with this.
2008-06-24 23:10:56 -03:00
Eamon Walsh
a3ec226273 Fix a leak in the code that parses the protocol names.
Also added some comments.
Reported by Ben Gamari (bug #16492).
2008-06-24 22:00:55 -04:00
Ben Gamari
a4cb25f8c8 dix: free FocusPrivates when deleting a window. #16493
Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>

X.Org Bug 16493 <http://bugs.freedesktop.org/show_bug.cgi?id=16493>
2008-06-25 09:59:46 +09:30
Peter Hutterer
32a7bbbba6 xfree86: fix up leftover allocation of xf86Events.
Thanks to Eamon Walsh for spotting this.
2008-06-25 09:59:46 +09:30
Peter Hutterer
bcc88a1d46 xkb: remove unused variable is_core. 2008-06-25 09:59:46 +09:30
Julien Cristau
9ed9d98dec x86emu: fix build, fallout from 9719354 2008-06-24 22:36:32 +02:00
Eamon Walsh
e9b4f3cd85 Fix "warning: suggest parentheses around && within ||". 2008-06-24 15:04:01 -04:00
Eamon Walsh
8910dde96e Fix "warning: assignment discards qualifiers from pointer target type". 2008-06-24 15:04:01 -04:00
Eamon Walsh
95d4ede538 Fix "warning: passing argument 1 of `modeIsPresent' from incompatible pointer type". 2008-06-24 15:04:01 -04:00
Eamon Walsh
fa1545eeda Fix "warning: passing argument 1 of `xf86addNewLoadDirective' from incompatible pointer type". 2008-06-24 15:04:01 -04:00
Adam Jackson
2725ba1fca Also remove xorgconfig from configure.ac. 2008-06-24 14:41:32 -04:00
Adam Jackson
9719354ae0 Check for __amd64__, not __x86_64__.
Spiritual revert of 1fa4de80fc.  Intel's C
compiler claims to be gcc-compatible; if they're not defining the same
macros as gcc then that's their bug, not ours.  Even if we were to do
this aliasing we should do it once and for all in servermd.h.
2008-06-24 14:37:06 -04:00
Roland Bär
249c892784 Bug #11857: Avoid running off the end of a MAXCLIENTS-sized array. 2008-06-24 14:13:02 -04:00
Adam Jackson
9e5b3deafb Bug #11842: Fix emulation of int1A PCI BIOS services.
Use only %di to name the PCI register to read/write, rather than %edi.
DOS is only expecting the base PCI config space anyway, and the BIOS
might be using the high bits of %edi.
2008-06-24 14:08:04 -04:00
Adam Jackson
d34430414a Remove xorgconfig. Use X -configure instead. 2008-06-24 13:32:55 -04:00
Owen Taylor
574c62e305 Bug #15369: Don't reduce Over to Src for transform + RepeatNone.
Only do no-src-alpha optimizations for a RepeatNone source if we can
easily probe that we won't sample outside the edges of the source.
2008-06-24 12:40:47 -04:00
Adam Jackson
100afae578 Bug #15586: (Correctly) refuse to redirect the root window. 2008-06-24 10:52:31 -04:00
Paul Bender
4c4e06af79 Bug #15665: Fix building without Composite. 2008-06-24 10:44:47 -04:00
Adam Jackson
59510a7643 Remove some default modes that really shouldn't be in the default set. 2008-06-24 10:40:36 -04:00
Julien Cristau
b622f6dc5d kdrive: fix building with --disable-xv (bug#16488) 2008-06-23 23:45:57 +02:00
Jesse Ruffin
3b58782692 Bug #16302: Fix GLX drawable refcounting in DMX. 2008-06-23 14:35:20 -04:00
Adam Jackson
c8d066a151 Implement bswap in x86emu.
Yes, this is a 486+ instruction and thus not strictly legal in vm86
mode, but enough BIOSes use it (looking at you VIA) that we might as
well implement it.
2008-06-23 14:00:50 -04:00
Adam Jackson
b55fbca4f0 Bug #12414: Create full-fledged pixmaps in fb24_32ReformatTile().
... instead of creating pixmaps that only fb knows about, which will
have no devPrivates for any other subsystem and thus cause havoc if
(when) they leak out.
2008-06-20 13:27:32 -04:00
Matthieu Herrb
155fcecb32 Various messages clean-ups. 2008-06-19 16:59:41 +02:00
Matthieu Herrb
41a65e1104 Fix ipc check on OpenBSD 2008-06-19 16:58:06 +02:00
Matthieu Herrb
ce4d4b3c1b build fix 2008-06-19 16:57:20 +02:00