summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel_winsys
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-31 11:35:50 -0600
committerBrian <[email protected]>2007-10-31 11:35:50 -0600
commit8984a283389a13f9b4315aa7b7df1eaaa612ba28 (patch)
treea9317eb227536a98b2b51f0340f98ed135a52f40 /src/mesa/drivers/dri/intel_winsys
parentb31e37f14d75231724a1cbb0c7fe7031a2315671 (diff)
Lift VBO/tnl stuff up out of drivers
Diffstat (limited to 'src/mesa/drivers/dri/intel_winsys')
-rw-r--r--src/mesa/drivers/dri/intel_winsys/intel_context.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/mesa/drivers/dri/intel_winsys/intel_context.c b/src/mesa/drivers/dri/intel_winsys/intel_context.c
index 975085b1681..790f67b5520 100644
--- a/src/mesa/drivers/dri/intel_winsys/intel_context.c
+++ b/src/mesa/drivers/dri/intel_winsys/intel_context.c
@@ -30,10 +30,6 @@
#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"
@@ -210,11 +206,6 @@ intelCreateContext(const __GLcontextModes * mesaVis,
intel->driScreen->myNum, "i915");
- /* Initialize the software rasterizer and helper modules. */
- _vbo_CreateContext(ctx);
- _tnl_CreateContext(ctx);
-
-
/*
* memory pools
*/
@@ -230,9 +221,6 @@ intelCreateContext(const __GLcontextModes * mesaVis,
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;
@@ -309,8 +297,6 @@ intelDestroyContext(__DRIcontextPrivate * driContextPriv)
//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);
@@ -332,8 +318,10 @@ intelDestroyContext(__DRIcontextPrivate * driContextPriv)
*/
}
- /* free the Mesa context */
+ /* free the Mesa context data */
_mesa_free_context_data(&intel->ctx);
+
+ st_destroy_context(intel->ctx.st);
}
}