Commit Graph

2710 Commits

Author SHA1 Message Date
Alan Coopersmith
9ad0811a54 Check for __sparc as well as __sparc__ for compatibility with Sun cc
(gcc defines __sparc__, Sun cc defines __sparc)
(cherry picked from commit f9f7d7f3be)
2007-02-17 17:31:36 -08:00
Alan Coopersmith
68b79fb193 Propogate $LIBS for xtrans, clock_gettime, libm, etc. to libs used for each server
(cherry picked from commit 40f84793bc)
2007-02-17 17:23:58 -08:00
Carl Switzky
6fd297e362 Add ast driver/device info to Xorg server & config utilities
(cherry picked from commit edd5f17454)
2007-02-17 17:18:28 -08:00
Aaron Plattner
d3f507c2a2 Add an RDTSC implementation to the x86 emulator.
This instruction is being used in some debug VBIOSes.  This implementation
doesn't even try to be accurate.  Instead, it just increments the counter by a
fixed amount every time an rdtsc instruction in encountered, to avoid divides by
zero.
2007-02-17 17:15:56 -08:00
Alan Coopersmith
8a16682892 Fix bus error on startup in 64-bit Xephyr
hostx_get_visual_masks takes unsigned long * arguments, but was being
passed pointers to CARD32's.
(cherry picked from commit 5dcad9e9d7)
2007-02-17 17:14:33 -08:00
Daniel Stone
33c2d2ce8a kdrive/ephyr: free screen struct
Free screen->driver on screenFini, instead of just leaking it.
(cherry picked from commit 0f6dd4aea6)
2007-02-17 17:12:23 -08:00
Daniel Stone
69073a48e3 os: fix client privates leak
Minor leak here.  Oops.
(cherry picked from commit 811675733e)
2007-02-17 17:08:10 -08:00
Keith Packard
0ab6c03c17 Ensure drivers can use new modes header files.
New modes header files required a few minor changes to be used by external
drivers, the most notable of which is the publication of the config file
parser header files.
2007-02-16 02:17:11 -08:00
Keith Packard
3d5e2bc5a6 Respect rotation in initial screen size computation. 2007-02-16 00:56:00 -08:00
Keith Packard
5f1046f6d3 Enable startup-time rotation; change rotation pixmap creation API.
Add monitor "Rotate" option taking one of "normal", "left", "inverted" or
"right". However, because initial mode selection is made before the screen
is completely initialized, we cannot create the shadow pixmap object at this
point. Pend the shadow pixmap creation until the block handler.

Note that this code is not completely functional yet.
2007-02-16 00:41:29 -08:00
Keith Packard
eabeede693 RRConfigureOutputProperty is a variable length request.
Replace REQUEST_SIZE_MATCH with REQUEST_AT_LEAST_SIZE
2007-02-15 22:23:16 -08:00
Keith Packard
3eebfb0a99 Report correct RandR 1.0 sizeID. Report correct subpixel order.
RandR 1.0 sizeID must be computed the same way every time, so when reporting
it in the ScreenChangeNotify event, just construct the usual 1.0 data block
and use that.

subpixel geometry information can be computed by looking at the connected
outputs and finding any with subpixel geometry and using one of those for
the global screen subpixel geometry. This might be improved by reporting
None if more than one screen has information and they conflict.
2007-02-15 20:13:15 -08:00
Keith Packard
7971392cdd Merge branch 'server-1.2-branch' into server-1.3-branch 2007-02-15 11:32:19 -08:00
Keith Packard
585a32be88 Allow new modes code to build inside drivers as well as server.
Use config.h for driver builds where xorg-config.h isn't available.
2007-02-15 11:27:35 -08:00
Tilman Sauerbeck
96c637350d Distribute hw/xfree86/modes. 2007-02-15 17:51:01 +01:00
Keith Packard
12505d9c0a Merge crtc/output-based mode selection code.
This code comes from the intel driver, so there's no history in this tree.

As the crtc/output-based mode selection code uses ddc, the ddc and i2c
modules have been merged into the server. Attempts to load them are safely
ignored now.
2007-02-14 18:13:15 -08:00
Eric Anholt
d1170fee8a Add missing dirty marking in a couple of fallback cases in the exaGlyphs path.
(cherry picked from commit 81aa7f059d)
2007-02-14 13:01:56 -08:00
Eric Anholt
f8fd7f23cf Mark sync when UploadToScreen succeeds in exaGlyphs().
(cherry picked from commit a5f19c5150)
2007-02-14 13:01:56 -08:00
Eric Anholt
c328513b36 Set the Damage version supported in the server, instead of using damageproto.
This was caught by distributions upgrading damageproto to 1.1, before the
server they had supported it.  The server then advertised the new version
without supporting the protocol.
(cherry picked from 8274ea6aa9 commit)
2007-02-13 13:26:25 -08:00
Alan Coopersmith
967865393c Plug memory leak in doLoadModule()
(cherry picked from cf7ca9d09c commit)
2007-02-13 13:25:46 -08:00
Alan Coopersmith
46e3ed88cc Make xf1bpp build correctly with compilers that don't support -include
(cherry picked from 0f0c321adf commit)
2007-02-13 13:25:43 -08:00
Eric Anholt
ed1778cfb2 Merge EXA updates up to commit cf5b29d75d.
This is EXA version 2.1, including the damagetrack work.
2007-02-12 16:08:00 -08:00
Eric Anholt
9fbb845e8b Provide option to report damage after operation is complete.
(cherry picked from commit 6060b612de)
2007-02-12 16:02:29 -08:00
Eric Anholt
fe13ebbe69 Fix the size expectations of xRRSetCrtcGamma.
It was using REQUEST_SIZE_MATCH (client request length must equal request size)
rather than REQUEST_AT_LEAST_SIZE (client request length must be at least
big enough for request size), and this request has data following the request
structure.
(cherry picked from commit 4f2f3233c8)
2007-02-02 12:14:40 -08:00
George Sapountzis
ec1c2fc092 dmx: drop leftover __GLXdrawablePrivateRec struct.
(cherry picked from commit cf5b29d75d)
2007-02-02 11:13:02 -08:00
Keith Packard
8798c8cfa8 Allow DDX to not supply a property set notification function.
Check rrOutputSetProperty and only call if it isn't NULL.
2007-01-30 19:05:20 -08:00
Keith Packard
895250181b Use old resource API in backported patch.
1.2 branch doesn't have the resource lookup changes, so we need to use the
old APIs.
2007-01-30 18:45:44 -08:00
Keith Packard
f993e142d2 Make Xinearama screen information reflect CRTC rotation.
(cherry picked from commit b6b8559321)
2007-01-29 23:04:17 -08:00
Eric Anholt
72754184f1 Really fix optimized render cases being hit when they shouldn't.
I don't know how this define slipped in there.  Fixes
6fdfd9dad9.
2007-01-29 23:01:52 -08:00
Eric Anholt
1225a49da2 Account for CRTC rotation in the cursor containment code. 2007-01-29 23:01:51 -08:00
Eric Anholt
364fb547d4 When changing a non-pending property, call the screen rrOutputSetProperty hook. 2007-01-29 23:01:51 -08:00
Eric Anholt
11307c4b88 Don't forget to add the property we configure to the properties list. 2007-01-29 23:01:50 -08:00
Eric Anholt
07e5c928ab Track rename of DamagePost -> DamageAdd. 2007-01-29 23:01:49 -08:00
Keith Packard
f1b95fda6c Add support for the DamagePost (XDamage 1.1) request.
This makes damageproto >= 1.1 a requirement to build.
(cherry picked from 0b73a7eb17)
2007-01-29 23:01:37 -08:00
Eric Anholt
cd5fe7890d Keep track of how many visuals we set up for GLcore, to avoid an invalid free.
The proper fix would involve actually setting up the ARGB visual for GLcore,
but I just want the server to not crash at exit.
2007-01-29 22:56:31 -08:00
Keith Packard
1a34f1966c Export API for setting allowed CRTC rotations 2007-01-29 22:04:07 -08:00
Keith Packard
ceca97cb84 Merge branch 'server-1.2' into randr-1.2-for-server-1.2 2007-01-29 22:03:19 -08:00
Adam Jackson
b9dc0aeea8 Fix release date. 2007-01-23 00:37:23 -05:00
Adam Jackson
bd8ef88d18 Bump video and input ABI minors.
Sadly this is a video ABI number already present in master, but that'll
just have to change, won't it?
2007-01-22 23:00:06 -05:00
Adam Jackson
c919f880d7 Bug #8991: Add glXGetDrawableAttributes dispatch; fix texture format therein. 2007-01-22 22:12:27 -05:00
Adam Jackson
fd838c02be Bug #9555: Always define _GNU_SOURCE in glibc environments.
This keeps us from having to define _POSIX_C_SOURCE, _BSD_SOURCE, and
_XOPEN_SORUCE to get the C environment we want in different places.  It also
fixes the build on linux due to RTLD_DEFAULT having not been defined.
(cherry picked from 7fccec91c4 commit)
2007-01-22 17:58:37 -05:00
Eric Anholt
fd77f9cbba Try dlsym(RTLD_DEFAULT) first when finding symbols.
The previous mechanism failed when finding drm symbols now that libdrm has
moved to being linked by libdri instead of being linked into the server.
(cherry picked from aab2ca2042 commit)
2007-01-22 17:53:15 -05:00
Michel Dänzer
cf70493520 __glXDRIscreenProbe: Use drmOpen/CloseOnce.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=9275 . Based on patch from
Alan Swanson.
(cherry picked from 65f4690ecb commit)
2007-01-22 17:52:19 -05:00
Donnie Berkholz
6b23b12cc8 sparc: don't include asm/kbio.h -- it no longer exists in current headers. 2007-01-21 22:02:32 -08:00
Alan Coopersmith
4f9de386b0 Update Xserver man page to match commit ed33c7c98a
Remove unused -xkbdb and -noloadxkb options. Rename -ar1 and -ar2 to
    -ardelay and -arinterval, respectively.
(cherry picked from 0d6d373af9 commit)
2007-01-19 14:53:52 -08:00
Drew Parsons
9ddaea25bd Minor typos in Xserver man page.
(cherry picked from 04554a3adc commit)
2007-01-19 14:53:44 -08:00
Alan Coopersmith
1dac07bf52 Update pci.ids to 2007-01-18 snapshot
(includes a whole bunch of ATI device id updates)
(cherry picked from 8b3a591cd3 commit)
2007-01-18 16:04:41 -08:00
Alan Coopersmith
4738713158 Xserver man page: remove bc, add -wr
(cherry picked from df147c10ce commit)
2007-01-17 16:48:48 -08:00
Aaron Plattner
7c937bfb8d Fix BSF and BSR instructions in the x86 emulator.
Patch courtesy of Michael Yaroslavtsev.
(cherry picked from 66fa87292e commit)
2007-01-10 15:34:23 -05:00
Michel Dänzer
0b990d1e68 Require glproto >= 1.4.8 for GLX.
It builds against 1.4.7 as well, but it hardcodes the GLX_EXT_tfp tokens that
were finalized in 1.4.8, so GLX_EXT_tfp breaks if the client side was built
against an older glproto. This will hopefully alert people to rebuild other
components (in particular Mesa) against the new glproto as well.
(cherry picked from 359d20532b commit)
2007-01-10 15:33:40 -05:00