mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 09:40:08 +01: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
|
||||
|
||||
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.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -35,12 +35,6 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
void debug_print_format(const char *msg, unsigned fmt);
|
||||
#else
|
||||
#define debug_print_format(_msg, _fmt) ((void)0)
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@
|
|||
|
||||
#include "pipe/p_compiler.h"
|
||||
#include "pipe/p_format.h"
|
||||
#include "util/u_debug_gallium.h"
|
||||
#include "util/format/u_format.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:
|
||||
return 0;
|
||||
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);
|
||||
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() */
|
||||
return 0;
|
||||
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);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue