remove old mesa context creation code
authorBrian <brian.paul@tungstengraphics.com>
Fri, 2 Nov 2007 19:06:40 +0000 (13:06 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Mon, 5 Nov 2007 15:04:47 +0000 (08:04 -0700)
src/mesa/drivers/dri/intel_winsys/intel_context.c

index 188e973..da79f18 100644 (file)
@@ -145,16 +145,6 @@ static const struct dri_debug_control debug_control[] = {
 #endif
 
 
-static void
-intelInitDriverFunctions(struct dd_function_table *functions)
-{
-   memset(functions, 0, sizeof(*functions));
-   st_init_driver_functions(functions);
-}
-
-
-
-
 
 GLboolean
 intelCreateContext(const __GLcontextModes * mesaVis,
@@ -162,11 +152,6 @@ intelCreateContext(const __GLcontextModes * mesaVis,
                    void *sharedContextPrivate)
 {
    struct intel_context *intel = CALLOC_STRUCT(intel_context);
-#if 0
-   struct dd_function_table functions;
-   GLcontext *ctx = &intel->ctx;
-   GLcontext *shareCtx = (GLcontext *) sharedContextPrivate;
-#endif
 
    __DRIscreenPrivate *sPriv = driContextPriv->driScreenPriv;
    intelScreenPrivate *intelScreen = (intelScreenPrivate *) sPriv->private;
@@ -175,15 +160,6 @@ intelCreateContext(const __GLcontextModes * mesaVis,
    GLboolean havePools;
    struct pipe_context *pipe;
 
-#if 0
-   intelInitDriverFunctions(&functions);
-
-   if (!_mesa_initialize_context(&intel->ctx,
-                                 mesaVis, shareCtx,
-                                 &functions, (void *) intel))
-      return GL_FALSE;
-#endif
-
    driContextPriv->driverPrivate = intel;
    intel->intelScreen = intelScreen;
    intel->driScreen = sPriv;
@@ -267,12 +243,8 @@ intelCreateContext(const __GLcontextModes * mesaVis,
       }
    }
 
-#if 0
-   st_create_context( &intel->ctx, pipe ); 
-#else
    intel->st = st_create_context2(pipe,  mesaVis, NULL);
-   intel->st->ctx->DriverCtx = intel;
-#endif
+   intel->st->ctx->DriverCtx = intel;  /* hope to get rid of this... */
 
    return GL_TRUE;
 }
@@ -314,14 +286,7 @@ intelDestroyContext(__DRIcontextPrivate * driContextPriv)
           */
       }
 
-#if 0
-      /* free the Mesa context data */
-      _mesa_free_context_data(ctx);
-
-      st_destroy_context(intel->ctx.st);
-#else
       st_destroy_context2(intel->st);
-#endif
    }
 }