#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.
*/
#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"
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;
}
/* 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;
}