This weekend I finished updating the DRI drivers to work with the new framebuffer/renderbuffer changes. My DRI test system is terribly out of date so I haven't run any tests. I'm tempted to just check in the changes now and help people fix any problems that arise, rather than spend a few days updating my test box. I think the code changes are pretty safe though.


Here's a summary of changes to the DRI drivers:

1. GLframebuffer creation changes:

   Create a "drirenderbuffer" for each color/depth/stencil buffer.
   Attach drirenderbuffers to the GLframebuffer.
   Add software-based renderbuffers.

   See r200_screen.c r200CreateBuffer() for example.


2. Span function changes:

   Span functions now get plugged into the renderbuffers, not the
   swrast module.
   Updated the parameters of the spantmp.h, spantmp2.h and
   depthtmp.h files.

   See r200_span.c for example.


After these changes are in and tested, there's some follow-on work:

1. Remove all old/dead code framebuffer/span code, marked
   with #if 0 / #endif

2. Make use of the drirenderbuffer's cpp, offset, pitch fields in
   the span functions.

3. Remove the SetBuffer routine.

4. Make sure swapbuffers in page-flipping mode updates the
   drirenderbuffer's offset fields for the color buffers.

5. Enable GL_EXT_framebuffer_object in the DRI drivers (using s/w
   rendering).


The Xlib and OSMesa and glfbdev drivers have been updated, but none of the others (DOS, Windows, etc). I can help people fix those.


I'm going to be out of town next week so I should either check in things today or wait 2 weeks. I'd rather do it sooner than later, and work through any breakage right away.

Are there any questions or concerns?

-Brian



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to