#include "context.h"
#include "extensions.h"
-#include "tnl/tnl.h"
-#include "tnl/t_pipeline.h"
-#include "tnl/t_vertex.h"
-
#include "drivers/common/driverfuncs.h"
#include "i830_dri.h"
intel->driScreen->myNum, "i915");
- /* Initialize the software rasterizer and helper modules. */
- _vbo_CreateContext(ctx);
- _tnl_CreateContext(ctx);
-
-
/*
* memory pools
*/
intel->driFd = sPriv->fd;
intel->driHwLock = (drmLock *) & sPriv->pSAREA->lock;
- TNL_CONTEXT(ctx)->Driver.RunPipeline = _tnl_run_pipeline;
-
-
fthrottle_mode = driQueryOptioni(&intel->optionCache, "fthrottle_mode");
intel->iw.irq_seq = -1;
intel->irqsEmitted = 0;
//intel->vtbl.destroy(intel);
release_texture_heaps = (intel->ctx.Shared->RefCount == 1);
- _tnl_DestroyContext(&intel->ctx);
- _vbo_DestroyContext(&intel->ctx);
intel_batchbuffer_free(intel->batch);
*/
}
- /* free the Mesa context */
+ /* free the Mesa context data */
_mesa_free_context_data(&intel->ctx);
+
+ st_destroy_context(intel->ctx.st);
}
}
#include "swrast/swrast.h"
#include "swrast_setup/swrast_setup.h"
#include "vbo/vbo.h"
+#if 0
#include "tnl/tnl.h"
#include "tnl/t_context.h"
#include "tnl/t_pipeline.h"
+#endif
#include "drivers/common/driverfuncs.h"
#include "state_tracker/st_public.h"
XMesaContext c;
GLcontext *mesaCtx;
struct dd_function_table functions;
+#if 0
TNLcontext *tnl;
+#endif
if (firstTime) {
_glthread_INIT_MUTEX(_xmesa_lock);
/* Initialize the software rasterizer and helper modules.
*/
if (!_swrast_CreateContext( mesaCtx ) ||
+#if 0
!_vbo_CreateContext( mesaCtx ) ||
!_tnl_CreateContext( mesaCtx ) ||
+#endif
!_swsetup_CreateContext( mesaCtx )) {
_mesa_free_context_data(&c->mesa);
_mesa_free(c);
return NULL;
}
+#if 0
/* tnl setup */
tnl = TNL_CONTEXT(mesaCtx);
tnl->Driver.RunPipeline = _tnl_run_pipeline;
+#endif
+
/* swrast setup */
xmesa_register_swrast_functions( mesaCtx );
_swsetup_Wakeup(mesaCtx);
_swsetup_DestroyContext( mesaCtx );
_swrast_DestroyContext( mesaCtx );
+#if 0
_tnl_DestroyContext( mesaCtx );
_vbo_DestroyContext( mesaCtx );
+#endif
_mesa_free_context_data( mesaCtx );
_mesa_free( c );
}
st->ctx = ctx;
st->pipe = pipe;
+ /* state tracker needs the VBO module */
+ _vbo_CreateContext(ctx);
+ /* XXX temporary */
+ _tnl_CreateContext(ctx);
+
st->draw = draw_create(); /* for selection/feedback */
st->dirty.mesa = ~0;
st_destroy_atoms( st );
st_destroy_draw( st );
+ _vbo_DestroyContext(st->ctx);
+ _tnl_DestroyContext(st->ctx); /* XXX temporary */
+
#if 0
st_destroy_cb_clear( st );
st_destroy_cb_program( st );