diff options
author | Luc Verhaegen <libv@skynet.be> | 2010-03-14 05:01:55 +0100 |
---|---|---|
committer | Luc Verhaegen <libv@skynet.be> | 2010-03-14 05:01:55 +0100 |
commit | da7796a7d40ca2cd4a03e99ddf38e3a7256a401f (patch) | |
tree | f692761e1ce757ce13112c602efc8228d422b78d /i915/i830_context.c | |
parent | cdb0aeec165a846b647e6f4e722c95c09e185ce1 (diff) |
Import i915 and i965 dri drivers from mesa 7.5.0.7.5.0
Diffstat (limited to 'i915/i830_context.c')
-rw-r--r-- | i915/i830_context.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/i915/i830_context.c b/i915/i830_context.c index 09b1ec9..840946f 100644 --- a/i915/i830_context.c +++ b/i915/i830_context.c @@ -47,7 +47,6 @@ i830InitDriverFunctions(struct dd_function_table *functions) { intelInitDriverFunctions(functions); i830InitStateFuncs(functions); - i830InitTextureFuncs(functions); } extern const struct tnl_pipeline_stage *intel_pipeline[]; @@ -73,6 +72,8 @@ i830CreateContext(const __GLcontextModes * mesaVis, return GL_FALSE; } + _math_matrix_ctr(&intel->ViewportMatrix); + /* Initialize swrast, tnl driver tables: */ intelInitSpanFuncs(ctx); intelInitTriFuncs(ctx); @@ -97,6 +98,10 @@ i830CreateContext(const __GLcontextModes * mesaVis, ctx->Const.MaxTextureRectSize = (1 << 11); ctx->Const.MaxTextureUnits = I830_TEX_UNITS; + ctx->Const.MaxTextureMaxAnisotropy = 2.0; + + ctx->Const.MaxDrawBuffers = 1; + _tnl_init_vertices(ctx, ctx->Const.MaxArrayLockSize + 12, 18 * sizeof(GLfloat)); |