diff options
author | Viktor Novotný <[email protected]> | 2012-05-01 15:23:51 +0200 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2012-05-02 03:14:29 +0200 |
commit | 83a02427e576a5126a618c13bc3e12ff2b4a3e0a (patch) | |
tree | 2cc59d34fe6adaa92dd62916e1b82c09f5e45209 /src/mesa/drivers/dri/nouveau/nv20_context.c | |
parent | 6d5efe96ee710ca1dd5f745f74a5bbfa4fd42fd9 (diff) |
dri/nv10-nv20: Add support for S3TC
Signed-off-by: Viktor Novotný <[email protected]>
Signed-off-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nv20_context.c')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nv20_context.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv20_context.c b/src/mesa/drivers/dri/nouveau/nv20_context.c index c91171791cc..5a36c8766d7 100644 --- a/src/mesa/drivers/dri/nouveau/nv20_context.c +++ b/src/mesa/drivers/dri/nouveau/nv20_context.c @@ -460,6 +460,10 @@ nv20_context_create(struct nouveau_screen *screen, const struct gl_config *visua ctx->Extensions.ARB_texture_env_dot3 = true; ctx->Extensions.NV_fog_distance = true; ctx->Extensions.NV_texture_rectangle = true; + if (ctx->Mesa_DXTn) { + ctx->Extensions.EXT_texture_compression_s3tc = true; + ctx->Extensions.S3_s3tc = true; + } /* GL constants. */ ctx->Const.MaxTextureCoordUnits = NV20_TEXTURE_UNITS; |