Kendall Bennett wrote:
> 
> Hi Guys,
> 
> I finally wanted to get around to hooking out optimised line and
> triangle rendering functions in Mesa. I see that osmesa and xmesa use
> the tritemp.h and linetemp.h header files to build functions specific
> to each particular format. However I don't seem to see any support in
> there for optimised texture mapped triangle functions. Can those
> headers be used for optimised texture mapped triangles?

Yes.  Basically, take a look at the textured triangle functions
in src/triangle.c.  By replacing the inner loop code with device-
specific code you can implement specialized rasterizers.

However, Mesa's software texturing has never been aggressively
optimized.  There's all kinds of x86-specific tricks one could
use.  I think Chris Hecker wrote some articles on this.


> If there is the ability to get better speed, I want to use it.
> However I don't want to spend any time coding new optimised rendering
> functions ;-)

What are ya, lazy?  :)

-Brian


_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to