Commit graph

13 commits

Author SHA1 Message Date
Jose Fonseca
95dba10bc0 Slighty more optimized DMA emulation C code. Support for waiting for
checking empty FIFO - but disabled for now.
2002-04-21 14:32:28 +00:00
Leif Delgass
31a6440465 Implement streamlined vertex buffer by setting up multiple sequential
register writes.
Register addresses in command/vertex buffer now specified by memory-mapped
    address, which is needed for real DMA.
Fix multi-reg write increment in pseudo-DMA flush (byte address needs +4
    incr.).
Restore DMAGETPTR grouping of state register writes.
2002-04-21 06:25:08 +00:00
Jose Fonseca
b21b585cf0 Forgot to increment the register number in the pseudo DMA algorithm 2002-04-20 22:04:42 +00:00
Jose Fonseca
e5b7dc8c19 Fixed another discrepancy in mach64_drm.h (this one harmless because is
wasn't being used). Use of the DMAGETPTR / DMAADVANCE for which
    conditional as they aren't executed in block. Update of
    mach64_print_dirty.
2002-04-20 21:42:00 +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
Leif Delgass
7aea29f4bc Preliminary changes required for AGP textures. AGP texture area is now
mapped in the DDX driver and Mesa client. DRI and Mesa screen
    structures updated to add agp texture region data. The AGP card heap is
    not setup in the Mesa driver screen init yet, so about all this does
    right now is print AGP mode info in the renderer string and the texture
    region should show up in the X log and /proc/dri
2002-04-20 07:38:16 +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
Leif Delgass
0873cfb116 Make sure we wait for enough FIFO entries (needed to add 2 to account for
scissors being added in a couple places).
2002-04-09 22:27:42 +00:00
Jose Fonseca
db8109dd4a Removed the AGP requirement in the DRM.
Fixed the mach64_state.c description header.
2002-03-23 03:28:08 +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