gallium: Fix compilation errors.
authorMichal Krol <michal@tungstengraphics.com>
Wed, 7 May 2008 12:24:14 +0000 (14:24 +0200)
committerMichal Krol <michal@tungstengraphics.com>
Wed, 7 May 2008 12:24:14 +0000 (14:24 +0200)
src/gallium/auxiliary/util/p_debug.c

index 3f3cf62..0f3a99c 100644 (file)
@@ -325,13 +325,6 @@ debug_dump_flags(const struct debug_named_value *names,
 }
 
 
-char *pf_sprint_name( char *str, enum pipe_format format )
-{
-   strcpy( str, debug_dump_enum(pipe_format_names, fmt) );
-   return str;
-}
-
-
 #ifdef DEBUG
 static const struct debug_named_value pipe_format_names[] = {
    DEBUG_NAMED_VALUE(PIPE_FORMAT_NONE),
@@ -432,6 +425,12 @@ void debug_print_format(const char *msg, unsigned fmt )
 {
    debug_printf("%s: %s\n", msg, debug_dump_enum(pipe_format_names, fmt)); 
 }
+
+char *pf_sprint_name( char *str, enum pipe_format format )
+{
+   strcpy( str, debug_dump_enum(pipe_format_names, format) );
+   return str;
+}
 #endif