mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 13:18:04 +02:00
gallium/util: do not use debug_print_format
These are the only two places we use this macro, and it's no longer very gallium-specific. So let's get rid of this, and just use debug_printf and util_format_name directly instead. Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3901>
This commit is contained in:
parent
5f0b984cb8
commit
dfea933a2a
3 changed files with 4 additions and 16 deletions
|
|
@ -34,13 +34,6 @@
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
|
||||||
void
|
|
||||||
debug_print_format(const char *msg, unsigned fmt)
|
|
||||||
{
|
|
||||||
debug_printf("%s: %s\n", msg, util_format_name(fmt));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Print PIPE_TRANSFER_x flags with a message.
|
* Print PIPE_TRANSFER_x flags with a message.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -35,12 +35,6 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
void debug_print_format(const char *msg, unsigned fmt);
|
|
||||||
#else
|
|
||||||
#define debug_print_format(_msg, _fmt) ((void)0)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@
|
||||||
|
|
||||||
#include "pipe/p_compiler.h"
|
#include "pipe/p_compiler.h"
|
||||||
#include "pipe/p_format.h"
|
#include "pipe/p_format.h"
|
||||||
#include "util/u_debug_gallium.h"
|
|
||||||
#include "util/format/u_format.h"
|
#include "util/format/u_format.h"
|
||||||
#include "util/u_math.h"
|
#include "util/u_math.h"
|
||||||
|
|
||||||
|
|
@ -463,7 +462,8 @@ util_pack_mask_z(enum pipe_format format, uint32_t z)
|
||||||
case PIPE_FORMAT_S8_UINT:
|
case PIPE_FORMAT_S8_UINT:
|
||||||
return 0;
|
return 0;
|
||||||
default:
|
default:
|
||||||
debug_print_format("gallium: unhandled format in util_pack_mask_z()", format);
|
debug_printf("gallium: unhandled format in util_pack_mask_z(): %s\n",
|
||||||
|
util_format_name(format));
|
||||||
assert(0);
|
assert(0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
@ -559,7 +559,8 @@ util_pack_z(enum pipe_format format, double z)
|
||||||
/* this case can get it via util_pack_z_stencil() */
|
/* this case can get it via util_pack_z_stencil() */
|
||||||
return 0;
|
return 0;
|
||||||
default:
|
default:
|
||||||
debug_print_format("gallium: unhandled format in util_pack_z()", format);
|
debug_printf("gallium: unhandled format in util_pack_z(): %s\n",
|
||||||
|
util_format_name(format));
|
||||||
assert(0);
|
assert(0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue