mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
intel: Move S3TC extension enable bits to intel_extensions.c
Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
71ceccad7e
commit
0a5478c1d9
2 changed files with 8 additions and 7 deletions
|
|
@ -856,13 +856,6 @@ intelInitContext(struct intel_context *intel,
|
|||
|
||||
intel_fbo_init(intel);
|
||||
|
||||
if (intel->ctx.Mesa_DXTn) {
|
||||
_mesa_enable_extension(ctx, "GL_EXT_texture_compression_s3tc");
|
||||
_mesa_enable_extension(ctx, "GL_S3_s3tc");
|
||||
}
|
||||
else if (driQueryOptionb(&intel->optionCache, "force_s3tc_enable")) {
|
||||
_mesa_enable_extension(ctx, "GL_EXT_texture_compression_s3tc");
|
||||
}
|
||||
intel->use_texture_tiling = driQueryOptionb(&intel->optionCache,
|
||||
"texture_tiling");
|
||||
intel->use_early_z = driQueryOptionb(&intel->optionCache, "early_z");
|
||||
|
|
|
|||
|
|
@ -165,4 +165,12 @@ intelInitExtensions(struct gl_context *ctx)
|
|||
if (driQueryOptionb(&intel->optionCache, "stub_occlusion_query"))
|
||||
ctx->Extensions.ARB_occlusion_query = true;
|
||||
}
|
||||
|
||||
if (intel->ctx.Mesa_DXTn) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue