Rune Petersen [2006-06-25 21:55]: > Tilman Sauerbeck wrote: > > Rune Petersen [2006-06-25 16:31]: > >> I've been looking at vertex shaders this weekend. > >> > >> It would appear that attribs are broken. The most straight forward way > >> to test this it to compare progs/tests/arbvptest3 to progs/tests/vptest3 > >> > >> On my system I get different colors when I resize the window. > >> > >> Can someone confirm this? (it would explain why Doom 3 is broken) > > > > Yes, I have reported this some weeks ago: > > http://marc.theaimsgroup.com/?l=dri-devel&m=114855685402158&w=2 > > > Don't know how I fixed that... > > It would appear to be caused bu the reshuffling of the attribs. > > Any idea where the attribs are passed to the driver? > and how to read the data in the attribs...
I figured it out. For NV vp's, the generic attributes will shadow the conventional ones, which means that src->Index will be 3 if you're accessing vertex.attrib[3] (the 3rd generic attribute). In ARB vp's, src->Index will be 19 instead for the 3rd generic attribute (= VERT_ATTRIB_GENERIC3). It seems the code in r300_vertexprog.c (and thus also the hardware) wants the number of the generic attribute... Modifying t_src_index in r300_vertexprog.c like this: tmp = src->Index; if (tmp >= VERT_ATTRIB_GENERIC0) tmp -= VERT_ATTRIB_GENERIC0; /* use tmp instead of src->Index in the following lines */ doesn't help though. Not sure what to do :/ Regards, Tilman -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?
pgppa3yAGGlET.pgp
Description: PGP signature
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel