diff options
author | Vinson Lee <vlee@vmware.com> | 2010-02-17 22:55:16 -0800 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2010-02-17 22:55:16 -0800 |
commit | 8266f1e5a5a2f066e4dd0e7bf3273d6edcbff760 (patch) | |
tree | b6c1483757e0637f467bb0e3031b60d04743d012 /progs | |
parent | 20a11722a2d4453c614381004b683993428de30e (diff) | |
download | external_mesa3d-8266f1e5a5a2f066e4dd0e7bf3273d6edcbff760.zip external_mesa3d-8266f1e5a5a2f066e4dd0e7bf3273d6edcbff760.tar.gz external_mesa3d-8266f1e5a5a2f066e4dd0e7bf3273d6edcbff760.tar.bz2 |
progs/rbug: Use util_format_name().
Diffstat (limited to 'progs')
-rw-r--r-- | progs/rbug/bin_to_bmp.c | 2 | ||||
-rw-r--r-- | progs/rbug/tex_dump.c | 2 | ||||
-rw-r--r-- | progs/rbug/tex_info.c | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/progs/rbug/bin_to_bmp.c b/progs/rbug/bin_to_bmp.c index 18dd57b0..6e9b162 100644 --- a/progs/rbug/bin_to_bmp.c +++ b/progs/rbug/bin_to_bmp.c @@ -74,7 +74,7 @@ static void dump(unsigned width, unsigned height, rgba = MALLOC(dst_size); } - util_snprintf(filename, 512, "%s.bmp", pf_name(src_format)); + util_snprintf(filename, 512, "%s.bmp", util_format_name(src_format)); if (util_format_is_compressed(src_format)) { debug_printf("skipping: %s\n", filename); diff --git a/progs/rbug/tex_dump.c b/progs/rbug/tex_dump.c index 963f8ee..e99f5a7 100644 --- a/progs/rbug/tex_dump.c +++ b/progs/rbug/tex_dump.c @@ -48,7 +48,7 @@ static void dump(rbug_texture_t tex, char filename[512]; util_snprintf(filename, 512, "%llu_%s_%u.bmp", - (unsigned long long)tex, pf_name(info->format), mip); + (unsigned long long)tex, util_format_name(info->format), mip); if (util_format_is_compressed(info->format)) { debug_printf("skipping: %s\n", filename); diff --git a/progs/rbug/tex_info.c b/progs/rbug/tex_info.c index 4a21bae..60ed9e2 100644 --- a/progs/rbug/tex_info.c +++ b/progs/rbug/tex_info.c @@ -24,6 +24,7 @@ #include "pipe/p_compiler.h" #include "pipe/p_format.h" +#include "util/u_format.h" #include "util/u_memory.h" #include "util/u_debug.h" #include "util/u_network.h" @@ -60,7 +61,7 @@ static void talk() info = (struct rbug_proto_texture_info_reply *)header; debug_printf("%llu %s %u x %u x %u, block(%ux%u %u), last_level: %u, nr_samples: %u, usage: %u\n", - (unsigned long long)list->textures[i], pf_name(info->format), + (unsigned long long)list->textures[i], util_format_name(info->format), info->width[0], info->height[0], info->depth[0], info->blockw, info->blockh, info->blocksize, info->last_level, info->nr_samples, info->tex_usage); |