[Mesa-dev] [PATCH 1/2] intel: Enable S3TC extensions always

Ian Romanick idr at freedesktop.org
Thu Oct 18 14:02:23 PDT 2012


From: Ian Romanick <ian.d.romanick at intel.com>

Always enable the use of pre- compressed texture data, and always advertise
the ability to do on-line compression.  The ability to perform on-line
compression still requires the presence of libtxc_dxtn, so sometimes the
driver incorrectly over-advertises functionality.  This should not impact many
(if any) real applications.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 src/mesa/drivers/dri/intel/intel_extensions.c | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c
index ec99c3e..40fdd23 100755
--- a/src/mesa/drivers/dri/intel/intel_extensions.c
+++ b/src/mesa/drivers/dri/intel/intel_extensions.c
@@ -179,14 +179,9 @@ intelInitExtensions(struct gl_context *ctx)
 	 ctx->Extensions.ARB_occlusion_query = true;
    }
 
-   if (intel->ctx.Mesa_DXTn) {
-      ctx->Extensions.ANGLE_texture_compression_dxt = true;
-      ctx->Extensions.EXT_texture_compression_s3tc = true;
-      ctx->Extensions.S3_s3tc = true;
-   }
-   else if (driQueryOptionb(&intel->optionCache, "force_s3tc_enable")) {
-      ctx->Extensions.EXT_texture_compression_s3tc = true;
-   }
+   ctx->Extensions.ANGLE_texture_compression_dxt = true;
+   ctx->Extensions.EXT_texture_compression_s3tc = true;
+   ctx->Extensions.S3_s3tc = true;
 
    if (intel->gen >= 4) {
       ctx->Extensions.NV_primitive_restart = true;
-- 
1.7.11.4



More information about the mesa-dev mailing list