John Lightsey wrote:
A while back I mentioned on dri-devel that Savage cards will segfault RTCW while loading the Checkpoint demo. ( http://www.nixnuts.net/benchmarks/current/ ) The problem is in Mesa/src/mesa/tnl/t_tertex.c around lines 741 and 913.

   for (j = 0; j < count; j++) {
      GLvector4f *vptr = VB->AttribPtr[a[j].attrib];
      a[j].inputstride = vptr->stride;
      ...
   }

vptr is null in the middle of the for loop ( j=2 is null j=0, 1, and 3 is valid.) I have no idea why this is the case, but I've attached a simple fix which eliminates the problem.

Does anyone see this in other hardware? If it's only the savage driver causing this, I would say there's probably a bug in the driver somewhere.


What are the values of j, count and a[j] at the time of the crash?

Keith


------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to