Commit Graph

280 Commits

Author SHA1 Message Date
Eric Anholt d803918a9f Add new Radeon 9200 PCI IDs. 2003-11-25 22:39:54 +00:00
Kaleb Keithley adc7f9a4eb XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folks 2003-11-25 19:29:01 +00:00
Kaleb Keithley 90f1536dd3 Initial revision 2003-11-25 19:29:01 +00:00
Eric Anholt d461855a73 - Fix Radeon offscreen pixmap pitch alignment.
- Remove usleeps from idle and waitavail code, recommended by keithp.
- Add a workaround for apparent broken acceleration with Rage 128 and
    offset alignment with 8-bit acceleration (24-hack and plain 8-bit).
- Minor cleanup of setup code.
2003-11-23 10:12:04 +00:00
Eric Anholt 8e09afe657 Add RV250 PCI IDs. 2003-11-23 02:08:16 +00:00
Eric Anholt b3247251fb - Fix a bug in pitch alignment for offscren pixmaps.
- Add 24-bit acceleration for Xati using the 8-bit trick from mach64.
- Add offscreen pixmap support to Xati.
2003-11-20 07:49:46 +00:00
Eric Anholt 41dde24b22 - Fix confusion of depth/bitsPerPixel in ati_draw.c
- Disable acceleration with 24bpp due to apparent broken acceleration.
    Accel at 24bpp was the cause of the crashes when people tried to use
    any depth over 16. XFree86 doesn't support 24 either.
- Disable at < 8bpp, too.
- Add the other Rage 128 PCI IDs.
- Remove unnecessary setting of scissor registers (only default scissor
    gets used).
2003-11-20 00:05:56 +00:00
Eric Anholt 7abbcce422 - Add PCI information (device/vendor id, bus location) to KdCardAttr to
help with ati, and future DRM drivers.
- Add new "ati" kdrive driver. It has ancestry in the r128 driver from
    andersca, but took a detour through being the WIP SiS 300 driver on the
    way. It supports Radeons (tested on QD VIVO and 7500) and Rage 128.
    Current limitations include that it requires depth 16 and that the
    other Rage 128 PCI IDs aren't included yet.
2003-11-19 08:32:38 +00:00
Keith Packard e9cb70dae0 Reset available offscreen segment save function pointer. (Not a functional
change, just cleaning up a bit)
Reset the screen->memory_base value when frame buffer is remapped. This
    makes sure new off-screen allocations point at the newly mapped region
    rather than the old (now unmapped) region.
2003-11-18 18:38:48 +00:00
Seth W. Klein f333581b7b Added infrastructure for driver specific usage messages and added vesa
usage message.
2003-11-18 04:53:16 +00:00
Keith Packard 003e87717c Recompute winSize/borderSize to fix them when changing redirection.
Sufficient, but not always necessary.
Add borderClip to damage on creation so that clients needn't guess.
Fix API to FbDots functions to make PolyPoint work with screen_x/screen_y
    offsets
Add debugging code to make sure no pictures are left pointing at freed
    pixmaps. "Can't" happen, but it did once.
Change KdOffscreenArea structure to eliminate separate private structure,
    eliminate the ScreenPtr, change from doubly linked to singly linked
    list.
Don't damage BackgroundNone windows on PW_BACKGROUND. Re-clip damage to
    borderClip in DamageSubtract.
2003-11-17 22:09:12 +00:00
Keith Packard acd2007705 Clear window when Manual Subwindows redirect is destroyed
Fix Tile/Stipple origin with non-zero pixmap window origins
Use computed depth for TrueColor visuals as fbdev doesn't have one.
2003-11-17 06:54:52 +00:00
Kaleb Keithley d568221710 XFree86 4.3.0.1 2003-11-14 16:49:22 +00:00
Kaleb Keithley 9508a382f8 Initial revision 2003-11-14 16:48:57 +00:00
Kaleb Keithley ded6147bfb R6.6 is the Xorg base-line 2003-11-14 15:54:54 +00:00
Keith Packard cb6ef07bf0 Accelerated image text code drew glyphs at wrong location when compositing
manager enabled.
2003-11-14 07:46:20 +00:00
Keith Packard 318d525bf2 Have the composite extension tell the damage extension about clients which
have redirected subwindows in manual mode. Those clients are marked
    Critical and given a significant scheduling boost whenever they receive
    a damage notify event. This dramatically improves update frequency.
If the kernel reported a large number of keys, readKernelMapping would walk
    off the end of the kdKeysym array.
Fix usage of _IOWR; the 'size' argument is actually a datatype.
2003-11-13 09:14:29 +00:00
Eric Anholt e9904cefa3 Fix Makefile.am's to include header files needed for distcheck. Remove
-Werror default and add --enable-werror switch to add it back.
2003-11-11 05:46:15 +00:00
Keith Packard 5dc119b73f Fix KdXv interface to pass drawable down so that bits can be put into
drawable pixmap rather than directly into the frame buffer. Rewrite
    logic in kdoffscreen to make space for new allocations, now deals
    correctly with locked areas.
2003-11-10 20:35:05 +00:00
Keith Packard e500986657 Must offset composite parameters by drawable coordinates in accelerated
case.
2003-11-10 06:40:23 +00:00
Phil Blundell d694b44259 Avoid ugly shell error when libXdmcp isn't present.
New functions. (TsInit): Register them.
2003-11-08 18:51:59 +00:00
Keith Packard 3e18c63634 Fix KAA to work with screen_x/screen_y hacks from COMPOSITE Also add
kaaComposite acceleration for simple bltblt case.
2003-11-08 00:28:19 +00:00
Keith Packard 1280f79054 Ok, Composite extension is semi-working; when no-one asks for redirection,
the server seems to act as before. With RedirectSubwindows (root,
    automatic), the server looks just like a regular X server. Now to go
    rewrite the (currently lame) compositing manager to get some real
    action on the screen.
Some of the fixes here are to make valgrind quiet with various ioctls used
    by kdrive/linux.
Also fixed a bug where fbdev initialization was out of order in fbdev.c and
    smi.c
2003-11-07 23:29:29 +00:00
Phil Blundell d319a0a610 Fix warnings. 2003-11-07 23:00:06 +00:00
Matthew Allum 598c5d549a tslib improvements 2003-11-06 14:01:46 +00:00
Keith Packard 7e1a564c41 Replace translucent compositing hacks with PictOpSrc to match eventual
extension semantics. Replace mouse acceleration with quadratic.
2003-11-05 06:46:13 +00:00
Keith Packard 5378236aa6 merge xfixes_2_branch back to HEAD 2003-11-02 19:56:10 +00:00
Phil Blundell 9e94665cf9 try /dev/misc/apm_bios if /dev/apm_bios doesn't exist 2003-10-28 22:28:33 +00:00
Phil Blundell bb99451f27 move smi into VESA_SUBDIRS 2003-10-28 22:27:35 +00:00
Keith Packard 9a05f8f785 Minor cleanups -- remove a couple of bogus KdCheckSync calls, restructure
KdOffscreenSwapOut to avoid unneeded 'continue'
2003-10-19 20:46:23 +00:00
Keith Packard 16b2ea64e7 Discard/reconstruct list of offscreen areas on VT switch so no allocations
can occur while switched away.
Set type of off_screen_areas member to actual type instead of pointer
2003-10-16 08:03:25 +00:00
Anders Carlsson f4bcd36a38 Add a memory_base variable and use it. 2003-10-15 05:34:54 +00:00
Keith Packard f5916edb17 hw/kdrive/*/Makefile.am Libraries in local dir must not use global path or
make doesn't build things in the right order (-j)
hw/kdrive/mga/mga.h, mgadraw.c Fix warnings
2003-10-15 04:59:45 +00:00
Keith Packard b3e47ce18f various Split out pixmap allocation debug statements Fix bogus offscreen
pixmap size test Add migration to composite function for source
    operands
VbeDPMS Remove extraneous call to VbeGetVib.
2003-10-15 01:00:38 +00:00
Keith Packard 28bcd2efd1 Avoid attempting acceleration on non-screen formats (for now)
Offscreen allocator API changes.
2003-10-14 21:33:04 +00:00
Keith Packard cb46169759 Use same assumptions as layergc about what layer kind is approprate for
unwrapping pixmap operations. This makes sure the accelerated code gets
    invoked for pixmaps
Add pixmap migration support to kaa. Can't quite automatically migrate
    pixmaps off-screen, but soon we will. Can kick objects out of video
    memory. Move per-screen linked list pointers to pixmap private. Wrap
    Composite in preparation for migrating pixmaps. Have kasync ignore
    drawable type so that pixmaps trigger sync Add KdOffscreenFini to
    cleanup on server reset. Switch off screen area to have only a 'save'
    function; moving objects to off screen memory is done by saving then
    freeing the area.
2003-10-14 21:10:53 +00:00
Keith Packard 109b949516 -Wall fixes. Might have fixed VESA based DPMS code as a result 2003-10-14 05:08:35 +00:00
Keith Packard 4b844cafb2 Check for off-screen pixmap support in KaaDrawableIsOffscreenPixmap. -Wall
fixes. Allocate pixmap private space only for screens with off-screen
    pixmap support
2003-10-14 05:07:39 +00:00
Keith Packard cdf3377f6d -Wall fixes. Support off-screen pixmaps 2003-10-14 05:05:53 +00:00
Keith Packard 777f31cd0b -Wall fixes. Add klinux.h to export function declarations 2003-10-14 05:05:28 +00:00
Keith Packard a398339b6d -Wall fixes 2003-10-14 05:04:22 +00:00
Anders Carlsson 44f2e82f1b Use pixmaps instead of drawables in the kaa functions. Have the mga server
support accelerated operations on offscreen pixmaps.
2003-10-13 02:19:47 +00:00
Anders Carlsson 47a9fab5e2 Add support for offscreen pixmaps. 2003-10-13 01:19:37 +00:00
Anders Carlsson c538fa8742 Fix a couple of bugs. 2003-10-13 00:56:21 +00:00
Anders Carlsson a50438b470 Add offscreen memory manager and update the servers to reflect the name
change for the kaa structure.
2003-10-13 00:19:58 +00:00
Anders Carlsson 307f3dbd10 Remove this for now. 2003-10-12 14:17:24 +00:00
Anders Carlsson ab3305d0ac Add ATI Rage 128 server. 2003-10-11 19:36:13 +00:00
Keith Packard ed98d3814e use #if instead of #ifdef 2003-10-09 23:35:44 +00:00
Anders Carlsson 4dd37de858 Build smi after vesa. 2003-10-09 16:21:24 +00:00
Keith Packard e5a1c9952f Initialize smi chip on graphics setup. Seems to help some. 2003-10-09 07:29:31 +00:00
Keith Packard 10f721acc5 Leave iopl set to 3 so vesa module will work 2003-10-09 07:12:01 +00:00
Keith Packard f74555e942 Add xfixes, fix smi driver to use either fbdev or vesa. Add hole mapping to
vesa server by default
2003-10-09 06:36:26 +00:00
Keith Packard 346aff7ef6 Use either vesa or fbdev, selectable at compile time 2003-10-09 06:35:11 +00:00
Keith Packard adc5b8068d Fix fbdev server to allow accelerated servers on top to use RandR. Switch
smi server to fbdev (vesa bios doesnt work on the Acer I have here)
2003-10-05 05:22:35 +00:00
Phil Blundell f3d8476ced few more fixes for h3600 ts 2003-10-04 02:56:54 +00:00
Keith Packard aae3e6dcb3 configure.ac Makefile.am os/oscolor.c Xext/saver.c Xext/Makefile.am
hw/kdrive/linux/ts.c hw/kdrive/src/Makefile.am hw/kdrive/src/kdrive.h
    hw/kdrive/src/kinput.c hw/kdrive/src/kmap.c Autodetect VM86 (for vesa),
    AGPGART, APM, MTRR, tslib and handhelds.org touch screen. Add
    USE_RGB_BUILTIN and code for fileless RGB database. Add
    MIT-SCREEN-SAVER
2003-10-04 02:43:16 +00:00
Phil Blundell efbf205a2a add --disable-kdrivevesa option 2003-10-03 15:27:46 +00:00
Keith Packard 89a536f349 Add smi server 2003-10-02 02:30:28 +00:00
Keith Packard 5a21f4f4d0 Add XDM cookies. Fix up support for pkgconfig X bits 2003-10-01 06:43:50 +00:00
Matthew Allum a42e31b28c Fixed tslib driver to handle VT switches 2003-09-30 22:14:59 +00:00
Keith Packard a0876ade64 Enable maintainer mode from autogen.sh. Fix vesa build to create library
before program. Remove bogus AC_SUBST lines for XSERVER_CFLAGS and
    XSERVER_LIBS
2003-09-30 20:49:47 +00:00
Matthew Allum e8c0229647 Added --enable-tslib configure option 2003-09-30 20:15:14 +00:00
Keith Packard a42384e935 Use other freedesktop.org packages to build the server 2003-09-29 01:42:40 +00:00
Anders Carlsson 6a098a88af Add beginnings of offscreen memory manager. 2003-09-24 23:36:54 +00:00
Keith Packard 918a8273ee hw/kdrive/src/kdrive.c
hw/kdrive/src/kdrive.h Add -switchCmd option to set command that is
    executed whenever the VT is enabled or disabled. This permits input
    device to be customized by external apps when switching to X.
2003-09-24 21:07:06 +00:00
Anders Carlsson 20bbd750d0 Accelerate server. 2003-09-22 21:14:59 +00:00
Anders Carlsson 49771e3f07 Add mga server to the build. 2003-09-18 20:48:48 +00:00
Anders Carlsson 07ab15d61d Add mga server 2003-09-18 20:47:43 +00:00
Anders Carlsson b260825e88 Try this. 2003-09-18 14:44:57 +00:00
Anders Carlsson b889d4ba2c Try things out. 2003-09-18 14:42:00 +00:00
Anders Carlsson 85ff67670c Add fbdev server to the build. 2003-09-16 21:07:16 +00:00
Keith Packard be12dcdcf3 Switch to freedesktop.org libXfont 2003-09-12 07:00:19 +00:00
Keith Packard eca43a59ec Clean up mach64 for autofoo 2003-09-12 01:51:16 +00:00
Keith Packard 6b16b827bb Add some configure options, make the mach64 server build 2003-09-12 01:49:46 +00:00
Keith Packard ce55d3234d Move kdrive common sources to src dir 2003-09-11 05:15:08 +00:00
Keith Packard 269b9dac5a Get Xvesa building 2003-09-11 05:12:51 +00:00
Keith Packard 0d775576b9 Add Makefile.am 2003-09-11 03:26:03 +00:00
Keith Packard ef8977a30c More build fixes 2003-09-11 03:23:13 +00:00
Keith Packard 14a8311bb3 Make more stuff build 2003-09-11 02:31:24 +00:00
Mike A. Harris 8bc8fd8678 POSIX sigaction cleanups - removed act.sa_restorer as it's not in POSIX and
is not portable
2003-09-11 02:02:54 +00:00
Anders Carlsson 514ab46ce3 Start autoifying everything. 2003-09-11 00:47:36 +00:00
Keith Packard 283a7f32c4 Update RCS tags, fix keyboard hang on VT switch, fix scroll wheel mice, add
-rawcoord option to not transform mice on rotate, fix mtrr to use
    power-of-two size, add a few vesa options
2003-07-07 19:13:03 +00:00
Keith Packard b923d897a5 Initial revision 2003-07-02 17:53:46 +00:00
Marc Aurele La France 544ee9bb7a 136. Fix bug that prevented fbman from using the last partial scanline of a
Mach64 framebuffer (Marc La France).
135. Make ATI Mach64 FIFO cache integrity testing optional (Marc La
    France).
134. Export ATI Mach64 hardware overlay as an XVideo adaptor (derived from
    GATOS project, Egbert Eich, Marc La France).
133. Reorganise ATI Mach64 support into separate source files (Marc La
    France).
132. Refine atimisc's decoding of the panel mode on server entry in an
    attempt to reduce the effect of atyfb bugs (Marc La France).
131. Make Rage128 and Radeon XVideo available even when 2D acceleration is
    disabled (Marc La France).
130. There is no longer any need to require hardware cursors during Rage128
    and Radeon XVideo displays (Marc La France).
129. Initialise v4l's XVideo adaptors last (Marc La France).
128. Reduce cut&paste effects by adding more helpers to Xv (derived from
    #5645, Björn Augustsson, Marc La France).
127. Centralise a region comparison primitive into 'mi' and use it instead
    of local definitions throughout the server (Marc La France).
126. DPMSExtension & XvExtension driver cleanups (Marc La France).
2003-04-23 21:51:18 +00:00
Egbert Eich 870d0f8752 621. Let kbd driver test if Xserver is in suspend before handling any input
events (Egbert Eich).
620. Fixed agp version checking to accept minor versions >= the specified
    number (Leif Delgass).
2002-12-12 18:29:05 +00:00
Keith Packard 7827fce0b5 Allow input devices to be closed while the VT is switched away (needs
per-driver support)
2002-11-13 16:37:39 +00:00
Keith Packard 3eaea6608b Update ipaq-specific ts driver to match generic tslib version 2002-11-12 22:20:42 +00:00
Keith Packard 612e82053d Clean up touch screen hacks for controlling pointer on alternate screen 2002-11-05 05:28:34 +00:00
Keith Packard 358d887cbe Add support for ARM linux TS lib (disabled by default) in kdrive 2002-11-01 22:27:49 +00:00
Keith Packard f0a8d06fca Refix mouse matrix computation for touch screens. Update usage message for
-screen option
2002-10-31 18:29:50 +00:00
Keith Packard 28d191680e Uninitialized mouse matrix elements 2002-10-30 21:25:53 +00:00
Alan Hourihane dd7c85f108 441. Import Mesa-4.0.4, and resync with the DRI trunk (DRI Project). 2002-10-30 12:52:06 +00:00
Keith Packard d04246c8fc Changed arguments to vesaRandRSetConfig 2002-10-18 06:31:17 +00:00
Keith Packard 7d214e2e2a Fix additions of RandR support in kmode.c 2002-10-18 06:08:10 +00:00
Keith Packard 5bb4a7b699 Fix other half of kdrive mach64 video code after randr update 2002-10-18 06:00:29 +00:00
Keith Packard e1c304e22b Add refresh rates to RandR (v1.1) 2002-10-14 18:01:42 +00:00
Keith Packard 5804e69f4c Custom file for rotating pcmcia screens 2002-10-13 19:35:56 +00:00
Keith Packard b5d1c53862 Add vtxx option to kdrive servers 2002-10-08 21:28:05 +00:00
Keith Packard f214cab20b Clear screen on mode switch 2002-10-08 21:27:18 +00:00
Keith Packard b28a8c6e2a Add another mach64 PCI id 2002-10-08 21:25:35 +00:00