Commit graph

13 commits

Author SHA1 Message Date
Jose Fonseca
33e6c36a6e Use DMA by default. 2002-04-30 12:21:20 +00:00
Leif Delgass
2558b54aa0 Byte swapping for vertex DMA data and DMA descriptors 2002-04-28 04:33:56 +00:00
Leif Delgass
121100a515 Account for endianess in register reads/writes. 2002-04-27 19:16:23 +00:00
Leif Delgass
edac61a944 remove duplicate prototype for mach64_do_wait_for_idle (oops) 2002-04-26 22:03:29 +00:00
Leif Delgass
40a9e22bf9 Initial hacked-up code for synchronous DMA of vertex buffers (disabled but
functional for both PCI and AGP). 16 KB descriptor table is created by
    the drm and the handles stored in the device private structure.
Finish setup of AGP -- AGP registers are now initialized.
Fix up MMIO for PCI.
2002-04-26 21:57:07 +00:00
Jose Fonseca
c04bb660f4 Better support for kernel ring buffers. Changes to allow the evetual use of
buffer aging.
2002-04-23 23:47:09 +00:00
Leif Delgass
bd00770298 Add agp texture region info to DRM. Also, use DMA* macros for DRM
emit_state functions. This ensures a wait_for_fifo for the MMIO writes.
2002-04-20 20:11:08 +00:00
Jose Fonseca
d04ebd5463 Added the state hardware programming functions to here 2002-04-20 12:03:19 +00:00
Jose Fonseca
c7df8b994c Fixed the DMA emulation code thanks to Keith 2002-04-20 00:20:49 +00:00
Jose Fonseca
c0622174af Code restructuring to be more similar to the existing drivers.
Implementation of several functions to support the handling of DMA
    buffers. The DMA emulation code is disabled because it segfaults when
    trying to read the DMA buffer.
2002-04-19 07:12:32 +00:00
Jose Fonseca
b7ff3cdd0f Removal of erroneous PCI GART code. Better support for PCI cards. More
robustness in the DRM DMA initialization code.
2002-04-15 00:51:14 +00:00
Leif Delgass
43fb03f135 Fixes for viewport calculation, scissors, and cliprects. Added drawX,drawY
to the context struct to hold origin of drawable in draw buffer. The
    viewport is adjusted using these fields.
Enabled scissor test, drm now uses scissor values from the sarea context.
    Also enabled color masking, drm uses mask from sarea context
    (untested).
The viewport calcs seem to be working, but cliprects still have problems
    for single buffer contexts and overlapping GL windows. Needs more
    testing and debugging. I'm committing now so we can continue with
    testing.
2002-03-05 02:03:31 +00:00
Jose Fonseca
9448f35c3b Initial merge with the trunk (XFree 4.2.x, Mesa 4.x) 2002-02-26 22:02:37 +00:00