Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=6412          
     
           Summary: mach64 vertex buffer cleanup
           Product: Mesa
           Version: CVS
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Drivers/DRI/Mach64
        AssignedTo: dri-devel@lists.sourceforge.net
        ReportedBy: [EMAIL PROTECTED]


mach64 is unique is having two implementations of VB, one that uses the
"template" vertex format and one that uses the "native" vertex format.

The "template" implementation uses the mesa provided t_dd_vb.c. However, 
it still provides its own version of t_dd_vbtmp.h (mach64_vbtmp.h) and 
adds complex draw functions in mach64_tris.c for conversion to native format.

The "native" implementation has simple draw functions. However, it performs
conversion to native format during emit (mach64_native_vbtmp.h) and back to
template format in translate (mach64_native_vb.c), these functions differ
greatly from the tnl_dd templates.

The attached patches have yet another implementation of the mach64 VB.
They define mach64Vertex as a struct that matches the native vertex format,
this allows to use both the mesa templates with very little changes and 
the simple draw functions.

The quirks are:
* we still have to provide slightly modified versions of templates t_dd_vb.c
  and t_dd_vbtmp.h, however the changes to t_dd_vb.c are minimal and can be
  dropped with another iteration of cleanups if the patches are accepted.

* they drop MACH64_PREMULT_TEXCOORDS, it did not seem to make a difference
  in performance.

* they push conversion to little-endian down to the draw functions, these
  changes are untested as I have x86.          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to