r300g: Use util_format_name().
authorJosé Fonseca <jfonseca@vmware.com>
Sun, 14 Feb 2010 13:25:22 +0000 (13:25 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Sun, 14 Feb 2010 13:25:22 +0000 (13:25 +0000)
src/gallium/drivers/r300/r300_screen.c
src/gallium/drivers/r300/r300_state_inlines.h
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/r300/r300_texture.h

index 7c8dd754578141797736540e0370452ad934773c..1668cae2f4349ce3189e54655481736b27bc2fdd 100644 (file)
@@ -277,7 +277,7 @@ static boolean r300_is_format_supported(struct pipe_screen* screen,
         case PIPE_FORMAT_X8Z24_UNORM:
             SCREEN_DBG(r300_screen(screen), DBG_TEX,
                        "r300: Note: Got unsupported format: %s in %s\n",
-                       pf_name(format), __FUNCTION__);
+                       util_format_name(format), __FUNCTION__);
             return FALSE;
 
         /* XXX Add all remaining gallium-supported formats,
@@ -286,7 +286,7 @@ static boolean r300_is_format_supported(struct pipe_screen* screen,
         default:
             /* Unknown format... */
             debug_printf("r300: Warning: Got unknown format: %s in %s\n",
-                pf_name(format), __FUNCTION__);
+                util_format_name(format), __FUNCTION__);
             break;
     }
 
index 779ba2c7be4ab0cc93dc058f2c4d7b5874f112cf..08d8d2e97ff614cca1fff555d35321d20b4e98a4 100644 (file)
@@ -367,7 +367,7 @@ static INLINE uint32_t r300_translate_colorformat(enum pipe_format format)
         default:
             debug_printf("r300: Implementation error: "
                 "Got unsupported color format %s in %s\n",
-                pf_name(format), __FUNCTION__);
+                util_format_name(format), __FUNCTION__);
             assert(0);
             break;
     }
@@ -389,7 +389,7 @@ static INLINE uint32_t r300_translate_zsformat(enum pipe_format format)
         default:
             debug_printf("r300: Implementation error: "
                 "Got unsupported ZS format %s in %s\n",
-                pf_name(format), __FUNCTION__);
+                util_format_name(format), __FUNCTION__);
             assert(0);
             break;
     }
@@ -428,7 +428,7 @@ static INLINE uint32_t r300_translate_out_fmt(enum pipe_format format)
         default:
             debug_printf("r300: Implementation error: "
                 "Got unsupported output format %s in %s\n",
-                pf_name(format), __FUNCTION__);
+                util_format_name(format), __FUNCTION__);
             assert(0);
             return R300_US_OUT_FMT_UNUSED;
     }
@@ -494,7 +494,7 @@ r300_translate_vertex_data_type(enum pipe_format format) {
 
     if (desc->layout != UTIL_FORMAT_LAYOUT_ARITH &&
         desc->layout != UTIL_FORMAT_LAYOUT_ARRAY) {
-        debug_printf("r300: Bad format %s in %s:%d\n", pf_name(format),
+        debug_printf("r300: Bad format %s in %s:%d\n", util_format_name(format),
             __FUNCTION__, __LINE__);
         assert(0);
     }
@@ -508,7 +508,7 @@ r300_translate_vertex_data_type(enum pipe_format format) {
                     break;
                 default:
                     debug_printf("r300: Bad format %s in %s:%d\n",
-                        pf_name(format), __FUNCTION__, __LINE__);
+                        util_format_name(format), __FUNCTION__, __LINE__);
                     assert(0);
             }
             break;
@@ -529,7 +529,7 @@ r300_translate_vertex_data_type(enum pipe_format format) {
                     break;
                 default:
                     debug_printf("r300: Bad format %s in %s:%d\n",
-                        pf_name(format), __FUNCTION__, __LINE__);
+                        util_format_name(format), __FUNCTION__, __LINE__);
                     debug_printf("r300: util_format_get_component_bits(format, UTIL_FORMAT_COLORSPACE_RGB, 0) == %d\n",
                         util_format_get_component_bits(format, UTIL_FORMAT_COLORSPACE_RGB, 0));
                     assert(0);
@@ -537,7 +537,7 @@ r300_translate_vertex_data_type(enum pipe_format format) {
             break;
         default:
             debug_printf("r300: Bad format %s in %s:%d\n",
-                pf_name(format), __FUNCTION__, __LINE__);
+                util_format_name(format), __FUNCTION__, __LINE__);
             assert(0);
     }
 
@@ -561,7 +561,7 @@ r300_translate_vertex_data_swizzle(enum pipe_format format) {
     if (desc->layout != UTIL_FORMAT_LAYOUT_ARITH &&
         desc->layout != UTIL_FORMAT_LAYOUT_ARRAY) {
         debug_printf("r300: Bad format %s in %s:%d\n",
-            pf_name(format), __FUNCTION__, __LINE__);
+            util_format_name(format), __FUNCTION__, __LINE__);
         return 0;
     }
 
index 417a57384c4e2e1d180b3973f49627844b57753e..f228220bb54f96a26612dcdfaa8bb6e68d55b7a4 100644 (file)
@@ -173,7 +173,7 @@ static void r300_setup_miptree(struct r300_screen* screen,
     unsigned stride, size, layer_size, nblocksy, i;
 
     SCREEN_DBG(screen, DBG_TEX, "r300: Making miptree for texture, format %s\n",
-               pf_name(base->format));
+               util_format_name(base->format));
 
     for (i = 0; i <= base->last_level; i++) {
         stride = r300_texture_get_stride(screen, tex, i);
index 961bdcc5b34c17222c67cf91f6ea1374825bcccf..0c5ac48a24c54a0e34ebafcd694a141dde3f476f 100644 (file)
@@ -24,6 +24,7 @@
 #define R300_TEXTURE_H
 
 #include "pipe/p_video_state.h"
+#include "util/u_format.h"
 
 #include "r300_reg.h"
 
@@ -109,7 +110,7 @@ static INLINE uint32_t r300_translate_texformat(enum pipe_format format)
         default:
             debug_printf("r300: Implementation error: "
                 "Got unsupported texture format %s in %s\n",
-                pf_name(format), __FUNCTION__);
+                util_format_name(format), __FUNCTION__);
             assert(0);
             break;
     }