draw: Replace varray by vsplit.
authorChia-I Wu <olv@lunarg.com>
Sat, 7 Aug 2010 07:12:14 +0000 (15:12 +0800)
committerChia-I Wu <olv@lunarg.com>
Mon, 16 Aug 2010 12:46:28 +0000 (20:46 +0800)
vsplit is a superset of varray.  It sets the split flags comparing to
varray.

src/gallium/auxiliary/draw/draw_private.h
src/gallium/auxiliary/draw/draw_pt.c

index 826f5dc98cbc43fb6a8f1e5fd244b7b103658364..18b632e3d951c8db62754404475f0ca12dbf3596 100644 (file)
@@ -141,7 +141,7 @@ struct draw_context
 
       struct {
          struct draw_pt_front_end *vcache;
-         struct draw_pt_front_end *varray;
+         struct draw_pt_front_end *vsplit;
       } front;
 
       struct pipe_vertex_buffer vertex_buffer[PIPE_MAX_ATTRIBS];
index 2b400eda0fc0a961351ce2f2eaf04f9424853276..b6debbecf5a1d3b8190fb423e6588f1afec35925 100644 (file)
@@ -111,8 +111,9 @@ draw_pt_arrays(struct draw_context *draw,
     */
    if (draw->pt.user.elts || (opt & PT_PIPELINE)) {
       frontend = draw->pt.front.vcache;
-   } else {
-      frontend = draw->pt.front.varray;
+   }
+   else {
+      frontend = draw->pt.front.vsplit;
    }
 
    frontend->prepare( frontend, prim, middle, opt );
@@ -134,8 +135,8 @@ boolean draw_pt_init( struct draw_context *draw )
    if (!draw->pt.front.vcache)
       return FALSE;
 
-   draw->pt.front.varray = draw_pt_varray(draw);
-   if (!draw->pt.front.varray)
+   draw->pt.front.vsplit = draw_pt_vsplit(draw);
+   if (!draw->pt.front.vsplit)
       return FALSE;
 
    draw->pt.middle.fetch_emit = draw_pt_fetch_emit( draw );
@@ -186,9 +187,9 @@ void draw_pt_destroy( struct draw_context *draw )
       draw->pt.front.vcache = NULL;
    }
 
-   if (draw->pt.front.varray) {
-      draw->pt.front.varray->destroy( draw->pt.front.varray );
-      draw->pt.front.varray = NULL;
+   if (draw->pt.front.vsplit) {
+      draw->pt.front.vsplit->destroy( draw->pt.front.vsplit );
+      draw->pt.front.vsplit = NULL;
    }
 }