The change in revision 1.45 of r300_context.c makes Neverwinter Nights crash
reproducably in some scenes.
Create a new character and choose the monk class. When you customize the
character, try to switch to another set of clothes, and it should crash.
I've ran NWN with bugle; these are the last few GL calls NWN does before it crashes:
trace.call: glBindTexture(GL_TEXTURE_2D, 131)
trace.call: glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP)
trace.call: glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP)
When I reversed the offending diff to make it work again, the following two
calls showed up in the log (after the calls above):
No clue whether it means anything, but the gloss and texcyl demos don't crash (I
tried them cause I noticed they were also doing glTexGeni calls with the same
This was fixed by commit 1.43 of r300_vertexprog.c.
This issue isn't fixed. The exit() call in the following code block in
r300_vertexprog.c causes the "crash":
fprintf(stderr, "Dont know how to handle op %d yet\n", vpi->Opcode);
where vpi->Opcode is OPCODE_ARL in my case. It's worth noting that
mesa_vp->Base.NumInstructions is zero.
Created attachment 4598 [details] [review]
NumInstructions was zero because of bug #5864, so the attached bugs works
Fixed by revision 1.44 of r300_vertexprog.c.
Mass version move, cvs -> git