ah crap that seems to be exactly what I was looking for but didn't find. Well at least it was fun to write the compression algorithm - I guess I'll post a patch (it's now finished (and works) anyway) and then just let it die...Just wanted to mention that the "old" 3Dfx compression tool is available at glide.sourceforge.net. It's called TEXUS2 and is included in the Glide "swlib" CVS module. It's a generic library that includes DXTn compression.
An external library seems to be the obvious choice, as it means it wouldn't be necessary to recompile Mesa/DRI just to get texture compression. Someone would need to integrate that cleanly into Mesa/DRI though.The Mesa 3Dfx accel driver uses it as an external library and works quite well. The compression algorithm was keeped outside Mesa because of S3/Microsoft's patent restriction and I think it would be safe to do the same for DRI. see http://dri.sourceforge.net/cgi-bin/moin.cgi/S3TC
Roland
btw it looks like at least the i830 and sis drivers could also easily get DXTn support (what about mga? IIRC the chips also support DXTn, but the mgaregs.h file seems to miss these), but lacking the hardware I won't touch them...
------------------------------------------------------- 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_id=1278&alloc_id=3371&op=click -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel