switch over to vbo module
authorKeith Whitwell <keith@tungstengraphics.com>
Sun, 29 Oct 2006 09:52:36 +0000 (09:52 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Sun, 29 Oct 2006 09:52:36 +0000 (09:52 +0000)
src/mesa/drivers/osmesa/osmesa.c
src/mesa/drivers/x11/xm_api.c
src/mesa/drivers/x11/xm_dd.c

index 0b027eddec59523f8533d04a1cd55bc32b14e1af..42a1bb51233a6824d32b54a155a090220b5d6cf6 100644 (file)
@@ -41,7 +41,6 @@
 #include "imports.h"
 #include "mtypes.h"
 #include "renderbuffer.h"
-#include "array_cache/acache.h"
 #include "swrast/swrast.h"
 #include "swrast_setup/swrast_setup.h"
 #include "swrast/s_context.h"
@@ -51,6 +50,7 @@
 #include "tnl/t_context.h"
 #include "tnl/t_pipeline.h"
 #include "drivers/common/driverfuncs.h"
+#include "vbo/vbo_context.h"
 
 
 
@@ -110,7 +110,6 @@ osmesa_update_state( GLcontext *ctx, GLuint new_state )
    /* easy - just propogate */
    _swrast_InvalidateState( ctx, new_state );
    _swsetup_InvalidateState( ctx, new_state );
-   _ac_InvalidateState( ctx, new_state );
    _tnl_InvalidateState( ctx, new_state );
 }
 
@@ -1261,7 +1260,7 @@ OSMesaCreateContextExt( GLenum format, GLint depthBits, GLint stencilBits,
          TNLcontext *tnl;
 
         if (!_swrast_CreateContext( ctx ) ||
-             !_ac_CreateContext( ctx ) ||
+             !_vbo_CreateContext( ctx ) ||
              !_tnl_CreateContext( ctx ) ||
              !_swsetup_CreateContext( ctx )) {
             _mesa_destroy_visual(osmesa->gl_visual);
@@ -1299,7 +1298,7 @@ OSMesaDestroyContext( OSMesaContext osmesa )
    if (osmesa) {
       _swsetup_DestroyContext( &osmesa->mesa );
       _tnl_DestroyContext( &osmesa->mesa );
-      _ac_DestroyContext( &osmesa->mesa );
+      _vbo_DestroyContext( &osmesa->mesa );
       _swrast_DestroyContext( &osmesa->mesa );
 
       _mesa_destroy_visual( osmesa->gl_visual );
index b50c4757afc8c94ae5dc8f408b5bdaa8736c8cb9..6fb0d9bbbd20469a173146c89ca36ac83a1e65db 100644 (file)
@@ -74,7 +74,7 @@
 #include "renderbuffer.h"
 #include "swrast/swrast.h"
 #include "swrast_setup/swrast_setup.h"
-#include "array_cache/acache.h"
+#include "vbo/vbo_context.h"
 #include "tnl/tnl.h"
 #include "tnl/t_context.h"
 #include "tnl/t_pipeline.h"
@@ -1555,7 +1555,7 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list )
    /* Initialize the software rasterizer and helper modules.
     */
    if (!_swrast_CreateContext( mesaCtx ) ||
-       !_ac_CreateContext( mesaCtx ) ||
+       !_vbo_CreateContext( mesaCtx ) ||
        !_tnl_CreateContext( mesaCtx ) ||
        !_swsetup_CreateContext( mesaCtx )) {
       _mesa_free_context_data(&c->mesa);
@@ -1587,7 +1587,7 @@ void XMesaDestroyContext( XMesaContext c )
    _swsetup_DestroyContext( mesaCtx );
    _swrast_DestroyContext( mesaCtx );
    _tnl_DestroyContext( mesaCtx );
-   _ac_DestroyContext( mesaCtx );
+   _vbo_DestroyContext( mesaCtx );
    _mesa_free_context_data( mesaCtx );
    _mesa_free( c );
 }
index abad300cc3ffb314ebd1bd10d5106bbf52a39cc4..39cec1dc9f81b23cb3053047dda3e3ea472c8199 100644 (file)
@@ -47,7 +47,6 @@
 #include "texstore.h"
 #include "texformat.h"
 #include "xmesaP.h"
-#include "array_cache/acache.h"
 #include "swrast/swrast.h"
 #include "swrast/s_context.h"
 #include "swrast_setup/swrast_setup.h"
@@ -831,7 +830,6 @@ xmesa_update_state( GLcontext *ctx, GLbitfield new_state )
     * modules.  The X11 driver has no internal GL-dependent state.
     */
    _swrast_InvalidateState( ctx, new_state );
-   _ac_InvalidateState( ctx, new_state );
    _tnl_InvalidateState( ctx, new_state );
    _swsetup_InvalidateState( ctx, new_state );