Am Sonntag, 04. Januar 2004 14:50 schrieb Andreas Stenglein:
> Am 2004.01.03 16:22:54 +0100 schrieb(en) Felix Kühling:
> [...]
>
> > I just added a short HOWTO to the Wiki:
> > http://dri.sourceforge.net/cgi-bin/moin.cgi/ConfigurationForDevelopers.
> > Let me know if you find any problems with the config code or the HOWTO.
>
> thanks a lot!
>
> > I'm going to try your patch in a minute. I think Torcs can use 3 TMUs.
>
> did it work ?
>
>
> here are three patches to use additionally to the TMU3/6 patch.
>
> Now by default 2 TMUs are chosen and you can adjust to 1..3 / 1..6

Update available?

It chocks on

Mesa/src/mesa/drivers/dri/r200/r200_swtcl.c
and
Mesa/src/mesa/drivers/dri/radeon/radeon_swtcl.c

-      if (ctx->Texture.Unit[0]._ReallyEnabled)
-        inputs |= VERT_BIT_TEX0;
-
-      if (ctx->Texture.Unit[1]._ReallyEnabled)
-        inputs |= VERT_BIT_TEX1;
+      for (unit = 0 ; unit < ctx->Const.MaxTextureUnits; unit++) {
+        if (ctx->Texture.Unit[unit]._ReallyEnabled)
+        inputs |= VERT_BIT_TEX(unit);
+      }


Ah and this is redundant, now (same for r200):

++ Mesa/src/mesa/drivers/dri/radeon/radeon_context.c   Sun Jan  4 14:30:49 
2004
@@ -304,9 +304,10 @@
     */

    ctx = rmesa->glCtx;
-   ctx->Const.MaxTextureUnits = 2;
-   ctx->Const.MaxTextureImageUnits = 2;
-   ctx->Const.MaxTextureCoordUnits = 2;
+   ctx->Const.MaxTextureUnits = driQueryOptioni (&rmesa->optionCache,
+                                                "max_tmu");
+   ctx->Const.MaxTextureImageUnits = ctx->Const.MaxTextureUnits;
+   ctx->Const.MaxTextureCoordUnits = ctx->Const.MaxTextureUnits;


Greetings,
        Dieter


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to