Commit graph

212 commits

Author SHA1 Message Date
Eric Anholt
e3e6fa3e33 Fix fill/copyarea of r128 by setting the scissor registers in setup, as
XFree86 does on engine init. Add another PCI ID to r128stub.c.
2003-11-02 09:27:36 +00:00
Keith Packard
fe28039ff4 Prototype fixes (various) Add GCC warnings (including -Werror. clean up
your code) Other warning fixes (unused variables, etc) Get rid of
    unused extension interfaces (aux screen procs) Make lots of functions
    in kdrive static Eliminate unused code from os library
2003-10-29 16:26:49 +00:00
Keith Packard
f1d14244df Was using byteStride before set in computing off_screen_base Also a couple
of unused variables removed
2003-10-25 15:13:20 +00:00
Keith Packard
0e1c630376 Make building (almost) work with automake 1.4 or 1.7. The dist-bzip2 option
needs help still.
2003-10-25 06:10:48 +00:00
Keith Packard
91dfc6b455 Function pointer initializers in wrong order (oops)
Missing return value
Not obeying autoconf HAVE_ALLOCA_H all of the time.
2003-10-25 05:44:47 +00:00
Keith Packard
faa7c94689 Add function called at CreateScreenResources to get shadow set up on pixmap
correctly. Rework vesa and fbdev code to handle shadows right with the
    non-layer world.
Use GetScreenPixmap directly for damage detection of sprite. Avoids
    problems during server shutdown with windows disappearing before the
    sprite layer is closed.
2003-10-24 09:34:33 +00:00
Keith Packard
d5b176b2d4 Ok, so this change is way bigger than it needed to be, but I couldn't stand
it anymore. The "real" change here is the addition of the damage
    extension server side pieces and a minor change of the miext/damage
    interface to add a callback on damage destroy. All of the configuration
    changes are to add macros for various sets of libraries so that we
    don't have to keep editing every Makefile.am whenever we add another
    extension to the library. The xfixes changes expose VERIFY_REGION so
    that damageext can use it.
2003-10-24 06:35:24 +00:00
Keith Packard
d67e480c32 Added SYNC_ALWAYS for debugging (sync after each operation)
Add SPRITE_DEBUG_ENABLE to help debug cursor problems
Leave all GCs redirected through Damage GC ops so that adding damage
    doesn't require revalidating all GCs (that would require walking the
    window tree and resetting all serial numbers). Add DAMAGE_DEBUG_ENABLE
    to help debug damage problems
2003-10-22 21:23:44 +00:00
Keith Packard
a7d61f290c Don't start pixmaps differing from root format in off-screen memory 2003-10-22 07:08:02 +00:00
Keith Packard
f2f8347001 oops. Failed to set window offsets in kaaGetOffscreenPixmap
Initialized shadow too early; acceleration stomped damage
2003-10-22 06:52:44 +00:00
Keith Packard
52ada03edb Build damage infrastructure. Don't build layer
Move check for 24/32 copy to fbCopyNtoN so that other users will hit it
Eliminate miext/layer
Build damage infrastructure. Don't build layer
Build damage infrastructure. Don't build layer
Memory leak fix of mach64c on server reset Memory leak fix for video on
    server reset. Eliminate layer
Build damage infrastructure. Don't build layer
Build damage infrastructure. Don't build layer
Build damage infrastructure. Don't build layer
Build damage infrastructure. Don't build layer
Don't assume windows are onscreen, use GetWindowPixmap and test
    devPrivate.ptr. Make sure depth 24 pixmaps are 24bpp when hardware
    format is 24bpp.
Get rid of debug KdAssertSync function
add memory_size to KdScreenInfo, eliminate off_screen_size, fix tests to
    suit.
Build damage infrastructure. Don't build layer
Use damage (for software cursor, I guess)
Damage is used for software cursor
Build damage infrastructure. Don't build layer
Use damage to track changes
Fix memory leak
2003-10-22 06:00:50 +00:00
Keith Packard
950cb2fd60 Minor cleanups -- remove a couple of bogus KdCheckSync calls, restructure
KdOffscreenSwapOut to avoid unneeded 'continue'
2003-10-19 20:48:16 +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