mesa: rename logging functions to reflect that they format strings

In preparation for the definition of a function to log a formatted
string.

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
This commit is contained in:
Mark Janes 2018-12-06 16:35:43 -08:00
parent eb1a869a5d
commit b8a1a3214a
12 changed files with 92 additions and 92 deletions

View File

@ -304,7 +304,7 @@ extern int INTEL_DEBUG;
if (unlikely(INTEL_DEBUG & DEBUG_PERF)) \
dbg_printf(__VA_ARGS__); \
if (intel->perf_debug) \
_mesa_gl_debug(&intel->ctx, &msg_id, \
_mesa_gl_debugf(&intel->ctx, &msg_id, \
MESA_DEBUG_SOURCE_API, \
MESA_DEBUG_TYPE_PERFORMANCE, \
MESA_DEBUG_SEVERITY_MEDIUM, \
@ -320,7 +320,7 @@ extern int INTEL_DEBUG;
fprintf(stderr, fmt); \
_warned = true; \
\
_mesa_gl_debug(ctx, &msg_id, \
_mesa_gl_debugf(ctx, &msg_id, \
MESA_DEBUG_SOURCE_API, \
MESA_DEBUG_TYPE_OTHER, \
MESA_DEBUG_SEVERITY_HIGH, fmt); \

View File

@ -536,7 +536,7 @@ intel_finish_render_texture(struct gl_context * ctx, struct gl_renderbuffer *rb)
#define fbo_incomplete(fb, ...) do { \
static GLuint msg_id = 0; \
if (unlikely(ctx->Const.ContextFlags & GL_CONTEXT_FLAG_DEBUG_BIT)) { \
_mesa_gl_debug(ctx, &msg_id, \
_mesa_gl_debugf(ctx, &msg_id, \
MESA_DEBUG_SOURCE_API, \
MESA_DEBUG_TYPE_OTHER, \
MESA_DEBUG_SEVERITY_MEDIUM, \

View File

@ -388,7 +388,7 @@ struct brw_cache {
if (unlikely(INTEL_DEBUG & DEBUG_PERF)) \
dbg_printf(__VA_ARGS__); \
if (brw->perf_debug) \
_mesa_gl_debug(&brw->ctx, &msg_id, \
_mesa_gl_debugf(&brw->ctx, &msg_id, \
MESA_DEBUG_SOURCE_API, \
MESA_DEBUG_TYPE_PERFORMANCE, \
MESA_DEBUG_SEVERITY_MEDIUM, \
@ -404,7 +404,7 @@ struct brw_cache {
fprintf(stderr, fmt); \
_warned = true; \
\
_mesa_gl_debug(ctx, &msg_id, \
_mesa_gl_debugf(ctx, &msg_id, \
MESA_DEBUG_SOURCE_API, \
MESA_DEBUG_TYPE_OTHER, \
MESA_DEBUG_SEVERITY_HIGH, fmt); \

View File

@ -3219,7 +3219,7 @@ genX(upload_push_constant_packets)(struct brw_context *brw)
if (binding->BufferObject == ctx->Shared->NullBufferObj) {
static unsigned msg_id = 0;
_mesa_gl_debug(ctx, &msg_id, MESA_DEBUG_SOURCE_API,
_mesa_gl_debugf(ctx, &msg_id, MESA_DEBUG_SOURCE_API,
MESA_DEBUG_TYPE_UNDEFINED,
MESA_DEBUG_SEVERITY_HIGH,
"UBO %d unbound, %s shader uniform data "

View File

@ -632,7 +632,7 @@ intel_render_texture(struct gl_context * ctx,
#define fbo_incomplete(fb, error_id, ...) do { \
static GLuint msg_id = 0; \
if (unlikely(ctx->Const.ContextFlags & GL_CONTEXT_FLAG_DEBUG_BIT)) { \
_mesa_gl_debug(ctx, &msg_id, \
_mesa_gl_debugf(ctx, &msg_id, \
MESA_DEBUG_SOURCE_API, \
MESA_DEBUG_TYPE_OTHER, \
MESA_DEBUG_SEVERITY_MEDIUM, \

View File

@ -2442,7 +2442,7 @@ shader_debug_log_mesa(void *data, const char *fmt, ...)
va_start(args, fmt);
GLuint msg_id = 0;
_mesa_gl_vdebug(&brw->ctx, &msg_id,
_mesa_gl_vdebugf(&brw->ctx, &msg_id,
MESA_DEBUG_SOURCE_SHADER_COMPILER,
MESA_DEBUG_TYPE_OTHER,
MESA_DEBUG_SEVERITY_NOTIFICATION, fmt, args);
@ -2466,7 +2466,7 @@ shader_perf_log_mesa(void *data, const char *fmt, ...)
if (brw->perf_debug) {
GLuint msg_id = 0;
_mesa_gl_vdebug(&brw->ctx, &msg_id,
_mesa_gl_vdebugf(&brw->ctx, &msg_id,
MESA_DEBUG_SOURCE_SHADER_COMPILER,
MESA_DEBUG_TYPE_PERFORMANCE,
MESA_DEBUG_SEVERITY_MEDIUM, fmt, args);

View File

@ -73,7 +73,7 @@ buffer_usage_warning(struct gl_context *ctx, GLuint *id, const char *fmt, ...)
va_list args;
va_start(args, fmt);
_mesa_gl_vdebug(ctx, id,
_mesa_gl_vdebugf(ctx, id,
MESA_DEBUG_SOURCE_API,
MESA_DEBUG_TYPE_PERFORMANCE,
MESA_DEBUG_SEVERITY_MEDIUM,

View File

@ -217,7 +217,7 @@ should_output(struct gl_context *ctx, GLenum error, const char *fmtString)
void
_mesa_gl_vdebug(struct gl_context *ctx,
_mesa_gl_vdebugf(struct gl_context *ctx,
GLuint *id,
enum mesa_debug_source source,
enum mesa_debug_type type,
@ -240,7 +240,7 @@ _mesa_gl_vdebug(struct gl_context *ctx,
void
_mesa_gl_debug(struct gl_context *ctx,
_mesa_gl_debugf(struct gl_context *ctx,
GLuint *id,
enum mesa_debug_source source,
enum mesa_debug_type type,
@ -249,7 +249,7 @@ _mesa_gl_debug(struct gl_context *ctx,
{
va_list args;
va_start(args, fmtString);
_mesa_gl_vdebug(ctx, id, source, type, severity, fmtString, args);
_mesa_gl_vdebugf(ctx, id, source, type, severity, fmtString, args);
va_end(args);
}

View File

@ -74,7 +74,7 @@ _mesa_shader_debug(struct gl_context *ctx, GLenum type, GLuint *id,
const char *msg);
extern void
_mesa_gl_vdebug(struct gl_context *ctx,
_mesa_gl_vdebugf(struct gl_context *ctx,
GLuint *id,
enum mesa_debug_source source,
enum mesa_debug_type type,
@ -83,7 +83,7 @@ _mesa_gl_vdebug(struct gl_context *ctx,
va_list args);
extern void
_mesa_gl_debug(struct gl_context *ctx,
_mesa_gl_debugf(struct gl_context *ctx,
GLuint *id,
enum mesa_debug_source source,
enum mesa_debug_type type,
@ -93,7 +93,7 @@ _mesa_gl_debug(struct gl_context *ctx,
#define _mesa_perf_debug(ctx, sev, ...) do { \
static GLuint msg_id = 0; \
if (unlikely(ctx->Const.ContextFlags & GL_CONTEXT_FLAG_DEBUG_BIT)) { \
_mesa_gl_debug(ctx, &msg_id, \
_mesa_gl_debugf(ctx, &msg_id, \
MESA_DEBUG_SOURCE_API, \
MESA_DEBUG_TYPE_PERFORMANCE, \
sev, \

View File

@ -675,7 +675,7 @@ fbo_incomplete(struct gl_context *ctx, const char *msg, int index)
{
static GLuint msg_id;
_mesa_gl_debug(ctx, &msg_id,
_mesa_gl_debugf(ctx, &msg_id,
MESA_DEBUG_SOURCE_API,
MESA_DEBUG_TYPE_OTHER,
MESA_DEBUG_SEVERITY_MEDIUM,

View File

@ -1019,7 +1019,7 @@ _mesa_validate_program_pipeline(struct gl_context* ctx,
static GLuint msg_id = 0;
_mesa_gl_debug(ctx, &msg_id,
_mesa_gl_debugf(ctx, &msg_id,
MESA_DEBUG_SOURCE_API,
MESA_DEBUG_TYPE_PORTABILITY,
MESA_DEBUG_SEVERITY_MEDIUM,

View File

@ -161,7 +161,7 @@ st_debug_message(void *data,
default:
unreachable("invalid debug type");
}
_mesa_gl_vdebug(st->ctx, id, source, type, severity, fmt, args);
_mesa_gl_vdebugf(st->ctx, id, source, type, severity, fmt, args);
}
void