Tommy Schultz Lassen wrote: > Oliver McFadden skrev: >> Hi, >> >> I need to understand and extend these functions because >> r300_ioctl.c:r300EmitClearState writes hard-coded values to these registers, >> and >> this should be replaced with calls to (extended) t_vir0 and t_vir1. These >> probably need to be renamed, too. >> >> > Hi, > > I have for some time been playing with the R300 driver to fix a problem > wit Newervinter Nights. > > While looking at that problem i made a patch to remove "struct > radeon_vertex_buffer". The problem with Newervinter is that it uses > VERT_ATTRIB_WEIGHT when i enable that. Colors in the regions where > VERT_ATTRIB_WEIGHT is used gets way of. Anyone have any insights on that? > > In the attached patch there is also a cleanup of t_vir0. I hop that > helps a bit.
Not sure what nwn is doing, it works fine with other chips, and chances are it wouldn't if it would really use VERT_ATTRIB_WEIGHT. Anything special about the areas where that's happening? There are workarounds in mesa core (and r200 driver) to make World of Warcraft work better, which also (errorneously) uses that, but that workaround is limited to fixing up vertex programs (which nwn usually doesn't use, except if some nv extensions are present IIRC), if an app tries to submit for instance a vertex weight array, it will not work. I don't quite understand where that attrib shows up in your case, but something seems fishy here... Roland ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev