From: <ran...@gm...> - 2010-03-03 22:30:11
|
Hello all! I recently plugged in old TNT2 (nv05) card and started to playing with it. This hardware can do quads and triangles, but not lines or points .... So, i need to emulate them. utah-glx has some code exactly for this generation of hardware: http://utah-glx.cvs.sourceforge.net/viewvc/utah-glx/glx-xf3/servGL/hwglx/nv/riva_prim.c?revision=1.11&view=markup I tried to cook up something like this for current nouveau driver, but nearly failed. Lack of hardware PolygonOffset support lead me into src/mesa/tnl_dd/t_dd_tritmp.h , used in many drivers. Currently, it can only DE-compose triangles, but can (or better - should) it be abjusted for creating additional vertex info (2->4, 1->4) ? Should one still use this file in modern world? On non-hw-tcl capable hw ..... |