diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2016-09-19 02:42:33 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2016-09-21 10:38:13 +0300 |
commit | 1b98fcdded00a689b2f8bff7a35b3a2bedd68082 (patch) | |
tree | 067f0f597669803b12b6bed18d6afb8d637f5063 | |
parent | e951b26b155f84b88f95aa87b651c7c8f6af721c (diff) |
nouveau: Move common extension enables to nouveau_context_initkill-nv04
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nouveau_context.c | 6 | ||||
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nv10_context.c | 6 | ||||
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nv20_context.c | 6 |
3 files changed, 6 insertions, 12 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_context.c b/src/mesa/drivers/dri/nouveau/nouveau_context.c index cb854b81933..8cea92a44d8 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_context.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_context.c @@ -188,6 +188,12 @@ nouveau_context_init(struct gl_context *ctx, gl_api api, ctx->Extensions.EXT_blend_minmax = true; ctx->Extensions.EXT_texture_filter_anisotropic = true; ctx->Extensions.NV_texture_env_combine4 = true; + ctx->Extensions.NV_fog_distance = true; + if (ctx->Mesa_DXTn) { + ctx->Extensions.EXT_texture_compression_s3tc = true; + ctx->Extensions.ANGLE_texture_compression_dxt = true; + } + ctx->Const.MaxDrawBuffers = ctx->Const.MaxColorAttachments = 1; /* This effectively disables 3D textures */ diff --git a/src/mesa/drivers/dri/nouveau/nv10_context.c b/src/mesa/drivers/dri/nouveau/nv10_context.c index f423127a7da..9b20521294c 100644 --- a/src/mesa/drivers/dri/nouveau/nv10_context.c +++ b/src/mesa/drivers/dri/nouveau/nv10_context.c @@ -444,12 +444,6 @@ nv10_context_create(struct nouveau_screen *screen, gl_api api, if (!nouveau_context_init(ctx, api, screen, visual, share_ctx)) goto fail; - ctx->Extensions.NV_fog_distance = true; - if (ctx->Mesa_DXTn) { - ctx->Extensions.EXT_texture_compression_s3tc = true; - ctx->Extensions.ANGLE_texture_compression_dxt = true; - } - /* GL constants. */ ctx->Const.MaxTextureLevels = 12; ctx->Const.MaxTextureCoordUnits = NV10_TEXTURE_UNITS; diff --git a/src/mesa/drivers/dri/nouveau/nv20_context.c b/src/mesa/drivers/dri/nouveau/nv20_context.c index 7a19063f86b..6b647eff567 100644 --- a/src/mesa/drivers/dri/nouveau/nv20_context.c +++ b/src/mesa/drivers/dri/nouveau/nv20_context.c @@ -455,12 +455,6 @@ nv20_context_create(struct nouveau_screen *screen, gl_api api, if (!nouveau_context_init(ctx, api, screen, visual, share_ctx)) goto fail; - ctx->Extensions.NV_fog_distance = true; - if (ctx->Mesa_DXTn) { - ctx->Extensions.EXT_texture_compression_s3tc = true; - ctx->Extensions.ANGLE_texture_compression_dxt = true; - } - /* GL constants. */ ctx->Const.MaxTextureCoordUnits = NV20_TEXTURE_UNITS; ctx->Const.Program[MESA_SHADER_FRAGMENT].MaxTextureImageUnits = NV20_TEXTURE_UNITS; |