mesa: pf_sprint_name->pf_name.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 7 Aug 2008 18:25:54 +0000 (19:25 +0100)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 7 Aug 2008 18:25:54 +0000 (19:25 +0100)
src/mesa/state_tracker/st_draw.c
src/mesa/state_tracker/st_format.c

index 30c2bdb723f8162248fa5fb7e6f8680c9785a356..cc3d7450a9f98fc87db665d56e83d49f1e0f4464 100644 (file)
@@ -339,7 +339,6 @@ st_draw_vbo(GLcontext *ctx,
 #if 0
    {
       GLuint i;
-      char buf[100];
       for (i = 0; i < vp->num_inputs; i++) {
          printf("buffers[%d].pitch = %u\n", i, vbuffer[i].pitch);
          printf("buffers[%d].max_index = %u\n", i, vbuffer[i].max_index);
@@ -350,7 +349,7 @@ st_draw_vbo(GLcontext *ctx,
          printf("vlements[%d].src_offset = %u\n", i, velements[i].src_offset);
          printf("vlements[%d].vbuffer_index = %u\n", i, velements[i].vertex_buffer_index);
          printf("vlements[%d].nr_comps = %u\n", i, velements[i].nr_components);
-         printf("vlements[%d].format = %s\n", i, pf_sprint_name(buf, velements[i].src_format));
+         printf("vlements[%d].format = %s\n", i, pf_name(velements[i].src_format));
       }
    }
 #endif
index b6d97ef65937106809e4f46988a5707128d76a49..2461f3962235b4e102c610492e6182b44d742163 100644 (file)
@@ -91,14 +91,7 @@ st_get_format_info(enum pipe_format format, struct pipe_format_info *pinfo)
       info = format;
 
 #if 0
-      {
-         char  fmtname[256];
-
-         pf_sprint_name( fmtname, format );
-         printf(
-            "%s\n",
-            fmtname );
-      }
+      printf("%s\n", pf_name( format ) );
 #endif
 
       /* Data type */