Ian Romanick wrote:

[EMAIL PROTECTED] wrote:

Hello,

No idea if this problem has been raised, but I had a problem running the demos
@ http://www.garagegames.com on a radeon ddr 32.


It seems to crash (lock hardware, the new IRQ code gives EBUSY, but the exit()
isn't clean) rendering triangle fan elts :-


xc/extras/Mesa/src/tnl_dd/t_dd_dmatmp2.h
   for (j = start + 1 ; j + 1 < count; j += nr - 1 ) {
      nr = MIN2( currentsz, count - j + 1 );
      TAG(emit_elts)( ctx, elts+start, 1 );
      TAG(emit_elts)( ctx, elts+j, nr - 1 );
      NEW_PRIMITIVE();
      currentsz = dmasz;

iff the first vertex is emitted by itself at the end
of a CmdBuf.

Here's a patch that prevents Think Tanks (and possibly other heavy users of triangle fans) from crashing on Radeon hardware. There seem to be some other texture related problems, but I haven't had a chance to delve into that. This should also fix similar problems on R200 hardware, but I haven't tested that out yet either.


Basically, I just in-lined emit_elts and did some minor clean-up. One problem that I have with emit_elts is that it seems to assume that the number of elts to emit is *always* a multiple of 2. Clearly this may not always be the case.

I just tried it out on a 64MB R200 (my R100 card is 32MB), and the texturing problems went away. My current thinking, therefore, is that there's a texture management problem lurking in there. I'll try to take a look into it. Could this be the same as the (fixed) problem with the i830 driver?




-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to