summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2012-08-21 15:33:04 -0700
committerIan Romanick <[email protected]>2013-01-23 23:38:04 -0500
commit5bd86b26df30d32412ca1b7ac02892ab5e10c6ef (patch)
treedbde65a68c6c6cbca292cc9d5a5f9c8f73151d86 /src/mesa
parent53f8251107d8a23892f0248db5a12098dadea38f (diff)
intel: Enable S3TC extensions always
Always enable the use of pre-compressed texture data. The ability to perform on-line compression still requires the presence of libtxc_dxtn or an explicit driconf over-ride. Applications that just want to submit precompessed data when an on-line compressor is not available can look for the GL_EXT_texture_compression_dxt1 and GL_ANGLE_texture_compression_dxt[35] extensions. v2: Only enable the extensions that do not require on-line compression by default. The previous statement "This should not impact many (if any) real applications." proved to be false for at least Sauerbraten. This application mostly submits pre-compressed data, but it also can submit uncompressed data that it asks the driver to compress. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Jordan Justen <[email protected]> [v1] Reviewed-by: Kenneth Graunke <[email protected]> [v1] Acked-by: Eric Anholt <[email protected]> [v1] Acked-by: Lee Salzman <[email protected]>
Diffstat (limited to 'src/mesa')
-rwxr-xr-xsrc/mesa/drivers/dri/intel/intel_extensions.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c
index 78b928db53d..d760f3031ba 100755
--- a/src/mesa/drivers/dri/intel/intel_extensions.c
+++ b/src/mesa/drivers/dri/intel/intel_extensions.c
@@ -177,13 +177,11 @@ intelInitExtensions(struct gl_context *ctx)
ctx->Extensions.ARB_occlusion_query = true;
}
- if (intel->ctx.Mesa_DXTn) {
- ctx->Extensions.ANGLE_texture_compression_dxt = true;
+ if (intel->ctx.Mesa_DXTn
+ || driQueryOptionb(&intel->optionCache, "force_s3tc_enable"))
ctx->Extensions.EXT_texture_compression_s3tc = true;
- }
- else if (driQueryOptionb(&intel->optionCache, "force_s3tc_enable")) {
- ctx->Extensions.EXT_texture_compression_s3tc = true;
- }
+
+ ctx->Extensions.ANGLE_texture_compression_dxt = true;
if (intel->gen >= 4) {
ctx->Extensions.NV_primitive_restart = true;