OSDN Git Service

remove dead code related to vf module
authorBrian <brian.paul@tungstengraphics.com>
Mon, 20 Aug 2007 22:43:58 +0000 (16:43 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Mon, 20 Aug 2007 22:43:58 +0000 (16:43 -0600)
src/mesa/pipe/draw/draw_context.c
src/mesa/pipe/draw/draw_private.h

index 0a3df37..760756c 100644 (file)
   */
 
 
-#ifdef MESA
-#include "main/macros.h"
-#else
 #include "pipe/p_util.h"
-#endif
 #include "draw_context.h"
 #include "draw_private.h"
 
+
+
 struct draw_context *draw_create( void )
 {
    struct draw_context *draw = CALLOC_STRUCT( draw_context );
@@ -59,12 +57,6 @@ struct draw_context *draw_create( void )
    ASSIGN_4V( draw->plane[5],  0,  0, -1, 1 ); /* mesa's a bit wonky */
    draw->nr_planes = 6;
 
-#ifdef MESA
-#if 0
-   draw->vf = vf_create( GL_TRUE );
-#endif
-#endif
-
    /* Statically allocate maximum sized vertices for the cache - could be cleverer...
     */
    {
@@ -81,14 +73,6 @@ struct draw_context *draw_create( void )
 
 void draw_destroy( struct draw_context *draw )
 {
-#if 0/*def MESA*/
-   if (draw->header.storage) {
-      ALIGN_FREE( draw->header.storage );
-   }
-
-   vf_destroy( draw->vf );
-#endif
-
    free( draw->vcache.vertex[0] ); /* Frees all the vertices. */
    free( draw );
 }
@@ -194,16 +178,6 @@ void draw_set_viewport_state( struct draw_context *draw,
                               const struct pipe_viewport_state *viewport )
 {
    draw->viewport = *viewport; /* struct copy */
-
-#ifdef MESA
-#if 0
-   vf_set_vp_scale_translate( draw->vf, viewport->scale, viewport->translate );
-#endif
-#endif
-
-   /* Using tnl/ and vf/ modules is temporary while getting started.
-    * Full pipe will have vertex shader, vertex fetch of its own.
-    */
 }
 
 
index a9825e6..5983bc1 100644 (file)
@@ -220,13 +220,6 @@ struct draw_context
       struct prim_header queue[PRIM_QUEUE_LENGTH];
       unsigned queue_nr;
    } pq;
-
-
-#if 0
-   ubyte *verts;
-   boolean in_vb;
-   struct vertex_fetch *vf;
-#endif
 };