On Sun, Feb 17, 2002 at 07:46:38PM +0100, Michel Dänzer wrote:
> On Son, 2002-02-17 at 18:08, Marc Dietrich wrote:
> > 
> > Wolfenstein crashes after playing the intro at line 494 in r128_texstate.c
> > with an "assert t" failed message.
> > This patch is based uppon a past patch made by Gareth Hughes (see 
> > http://marc.theaimsgroup.com/?l=dri-devel&m=98470478214782 ) for the
> > radeon driver. There are also some other changes, but I really don't know 
> > what this stuff is doing - it just works for me.
> > Maybe someone can confirm (and understand) this.
> 
> I can confirm that this fixes the same problem in tuxracer and other
> apps, but I'm hesitant to commit it because I don't understand why. :/

The only paths that allocate 't' (AllocTexObj) are the TexImage<n>D functions and
TexParameter.

Given a texture that's already reached the point where it's in card
memory, there's every chance it'll get used again without those
functions being called afaict.

So it'd have to be swapped rather than destroyed as written now.

The radeon driver differs both by using Swap at that point, but it
allocates when Bind is called too.

-- 
Michael.

_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to