mesa/vbo: use _lookup_prim_by_nr for debugging
authorKeith Whitwell <keithw@vmware.com>
Tue, 30 Jun 2009 11:16:41 +0000 (12:16 +0100)
committerKeith Whitwell <keithw@vmware.com>
Tue, 30 Jun 2009 11:16:41 +0000 (12:16 +0100)
Switch over to specialized enum lookup for primitives

src/mesa/vbo/vbo_exec_draw.c
src/mesa/vbo/vbo_save_api.c
src/mesa/vbo/vbo_save_loopback.c
src/mesa/vbo/vbo_split_copy.c

index da2d849ded70d4276baf84032a328657ea08e6d2..e238d55c820b735613dff40e9ddbd816a176f07b 100644 (file)
@@ -50,7 +50,7 @@ static void vbo_exec_debug_verts( struct vbo_exec_context *exec )
       struct _mesa_prim *prim = &exec->vtx.prim[i];
       _mesa_printf("   prim %d: %s%s %d..%d %s %s\n",
                   i, 
-                  _mesa_lookup_enum_by_nr(prim->mode),
+                  _mesa_lookup_prim_by_nr(prim->mode),
                   prim->weak ? " (weak)" : "",
                   prim->start, 
                   prim->start + prim->count,
index 868226075ac224f2fb83efb7115c2eab27db8c8a..971a338af42deee02b6830cf66daeea4f23f350c 100644 (file)
@@ -1148,7 +1148,7 @@ static void vbo_print_vertex_list( GLcontext *ctx, void *data )
       struct _mesa_prim *prim = &node->prim[i];
       _mesa_debug(NULL, "   prim %d: %s%s %d..%d %s %s\n",
                  i, 
-                 _mesa_lookup_enum_by_nr(prim->mode),
+                 _mesa_lookup_prim_by_nr(prim->mode),
                  prim->weak ? " (weak)" : "",
                  prim->start, 
                  prim->start + prim->count,
index 92ca4ea95d3872d8d79a5a99db905157921ec605..b7a74e4535ae561c3fe9f1ef75a74efc2f0be78f 100644 (file)
@@ -97,7 +97,7 @@ static void loopback_prim( GLcontext *ctx,
 
    if (0)
       _mesa_printf("loopback prim %s(%s,%s) verts %d..%d\n",
-                  _mesa_lookup_enum_by_nr(prim->mode),
+                  _mesa_lookup_prim_by_nr(prim->mode),
                   prim->begin ? "begin" : "..",
                   prim->end ? "end" : "..",
                   start, 
index 5fb66d3318f6c77878c1ac14cfff3d9f0582d9ac..b9a5c569876b926bcc8ac72dc15d22ac76521a4a 100644 (file)
@@ -180,7 +180,7 @@ static void begin( struct copy_context *copy, GLenum mode, GLboolean begin_flag
 {
    struct _mesa_prim *prim = &copy->dstprim[copy->dstprim_nr];
 
-/*    _mesa_printf("begin %s (%d)\n", _mesa_lookup_enum_by_nr(mode), begin_flag); */
+/*    _mesa_printf("begin %s (%d)\n", _mesa_lookup_prim_by_nr(mode), begin_flag); */
                
    prim->mode = mode;
    prim->begin = begin_flag;