From d09209f5530e8bba78e4e0ec62b2027c588cc8f3 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 7 Oct 2004 23:30:29 +0000 Subject: Add Roland Scheidegger's S3TC patch. This patch does not implement the (patented) S3TC/DXTC algorithms, but adds an option to dlopen a library module providing functions to do so. Because it uses dlopen, it is only enabled if USE_EXTERNAL_DXTN_LIB=1 is defined (which is only in linux-dri config, so far). It adds support for S3TC to several DRI drivers, and adds a DRI config option to force enabling S3TC even if the software compression/decompression is unavailable. This may allow people to use apps that require S3TC even though they don't have a license to implement the patented material themselves, if those apps use precompressed textures. Ideally we would get permission from the current holder of the patents to implement the algorithm in Mesa, at which point the dlopen mess could go away. Until then, this allows some to run applications they couldn't otherwise, and hopefully will provide us with more push to get the final step of getting that permission done. --- src/mesa/main/mtypes.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mesa/main/mtypes.h') diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 07119a2fb6..4086ef94be 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -2455,6 +2455,9 @@ struct __GLcontextRec { /** Dither disable via MESA_NO_DITHER env var */ GLboolean NoDither; + /** software compression/decompression supported or not */ + GLboolean Mesa_DXTn; + /** Core tnl module support */ struct gl_tnl_module TnlModule; -- cgit v1.2.3