On Sun, Aug 03, 2003 at 01:14:21PM -0700, Ian Romanick wrote:Ville Syrj�l� wrote:
Hw can't support dot3 stuff. Also RGB_SCALE and ALPHA_SCALE only work fully with GL_MODULATE. GL_REPLACE can't support this at all the others support only a value of 1.
Dot3 is one of the truly frustrating things about the G400. It has all the hardware to do it. It has the MODULATE arithmetic followed by the ADD in almost the right way. Too bad they didn't think to wire the ADD logic that way. :( Of course, at the time they thought EMBM was going to be the thing of the future...
Well at least ATI_envmap_bumpmap should be possible. It's on my todo list but I just wanted to get the basic stuff working first.
Right. That extension is *exactly* the EMBM functionality from DirectX that the G400 pioneered. The G400, R100, R200, and i830 all implement this functionality. The only catch (and the reason I haven't implemented this extension on the ATI cards) is that we need the SW path in Mesa first.
Looking at the way texturing works in Mesa, I can't see any way to implement it without great, GREAT difficulty or using a fragment program. Brian, would that be your assessment as well?
On GL_REPLACE, it can handle scaling in most cases. You just have to program the alpha input to be 1, select the correct color input, and use the modulate with the correct scale.
But how do I program the alpha input to 1? I think the FCOL register is the only way to do that but then CONSTANT + SRC_ALPHA or ONE_MINUS_SRC_ALPHA wouldn't work. Maybe I should do it anyway and if are needed then do the fallback. It would affect GL_BLEND too...
In looking at the docs again, I think you are correct. It would require even MORE special-casing than I thought. Maybe we should just compile a list of classes of modes that require the SW fallback and wait to fix any of them until someone complains (or offers a patch). :)
Also, doing 'strings /usr/local/games/ThinkTanksDemo/ThinkTanks.bin | grep GL_' leads me to believe that ThinkTanks might be a useful texture_env_combine test.
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel
