diff options
author | Mark Janes <[email protected]> | 2018-12-06 16:35:43 -0800 |
---|---|---|
committer | Mark Janes <[email protected]> | 2019-03-14 12:56:45 -0700 |
commit | b8a1a3214afa3ac8f3b46ecce59bdd75a612c7e9 (patch) | |
tree | c50fe16699f38e0505420b032b337e9318082035 /src/mesa/drivers | |
parent | eb1a869a5d19bfd8a0d4099afd58f180997e4663 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_context.h | 18 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_fbo.c | 10 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.h | 18 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/genX_state_upload.c | 14 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_fbo.c | 10 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_screen.c | 16 |
6 files changed, 43 insertions, 43 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_context.h b/src/mesa/drivers/dri/i915/intel_context.h index 6613356010a..c5a2c489185 100644 --- a/src/mesa/drivers/dri/i915/intel_context.h +++ b/src/mesa/drivers/dri/i915/intel_context.h @@ -304,11 +304,11 @@ 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_DEBUG_SOURCE_API, \ - MESA_DEBUG_TYPE_PERFORMANCE, \ - MESA_DEBUG_SEVERITY_MEDIUM, \ - __VA_ARGS__); \ + _mesa_gl_debugf(&intel->ctx, &msg_id, \ + MESA_DEBUG_SOURCE_API, \ + MESA_DEBUG_TYPE_PERFORMANCE, \ + MESA_DEBUG_SEVERITY_MEDIUM, \ + __VA_ARGS__); \ } while(0) #define WARN_ONCE(cond, fmt...) do { \ @@ -320,10 +320,10 @@ extern int INTEL_DEBUG; fprintf(stderr, fmt); \ _warned = true; \ \ - _mesa_gl_debug(ctx, &msg_id, \ - MESA_DEBUG_SOURCE_API, \ - MESA_DEBUG_TYPE_OTHER, \ - MESA_DEBUG_SEVERITY_HIGH, fmt); \ + _mesa_gl_debugf(ctx, &msg_id, \ + MESA_DEBUG_SOURCE_API, \ + MESA_DEBUG_TYPE_OTHER, \ + MESA_DEBUG_SEVERITY_HIGH, fmt); \ } \ } \ } while (0) diff --git a/src/mesa/drivers/dri/i915/intel_fbo.c b/src/mesa/drivers/dri/i915/intel_fbo.c index 78e2c1e6614..880fd7cfba1 100644 --- a/src/mesa/drivers/dri/i915/intel_fbo.c +++ b/src/mesa/drivers/dri/i915/intel_fbo.c @@ -536,11 +536,11 @@ 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_DEBUG_SOURCE_API, \ - MESA_DEBUG_TYPE_OTHER, \ - MESA_DEBUG_SEVERITY_MEDIUM, \ - __VA_ARGS__); \ + _mesa_gl_debugf(ctx, &msg_id, \ + MESA_DEBUG_SOURCE_API, \ + MESA_DEBUG_TYPE_OTHER, \ + MESA_DEBUG_SEVERITY_MEDIUM, \ + __VA_ARGS__); \ } \ DBG(__VA_ARGS__); \ fb->_Status = GL_FRAMEBUFFER_UNSUPPORTED; \ diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 8b46b678064..55264075325 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -388,11 +388,11 @@ 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_DEBUG_SOURCE_API, \ - MESA_DEBUG_TYPE_PERFORMANCE, \ - MESA_DEBUG_SEVERITY_MEDIUM, \ - __VA_ARGS__); \ + _mesa_gl_debugf(&brw->ctx, &msg_id, \ + MESA_DEBUG_SOURCE_API, \ + MESA_DEBUG_TYPE_PERFORMANCE, \ + MESA_DEBUG_SEVERITY_MEDIUM, \ + __VA_ARGS__); \ } while(0) #define WARN_ONCE(cond, fmt...) do { \ @@ -404,10 +404,10 @@ struct brw_cache { fprintf(stderr, fmt); \ _warned = true; \ \ - _mesa_gl_debug(ctx, &msg_id, \ - MESA_DEBUG_SOURCE_API, \ - MESA_DEBUG_TYPE_OTHER, \ - MESA_DEBUG_SEVERITY_HIGH, fmt); \ + _mesa_gl_debugf(ctx, &msg_id, \ + MESA_DEBUG_SOURCE_API, \ + MESA_DEBUG_TYPE_OTHER, \ + MESA_DEBUG_SEVERITY_HIGH, fmt); \ } \ } \ } while (0) diff --git a/src/mesa/drivers/dri/i965/genX_state_upload.c b/src/mesa/drivers/dri/i965/genX_state_upload.c index af70bf53136..e904c4c0cf9 100644 --- a/src/mesa/drivers/dri/i965/genX_state_upload.c +++ b/src/mesa/drivers/dri/i965/genX_state_upload.c @@ -3219,13 +3219,13 @@ 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_DEBUG_TYPE_UNDEFINED, - MESA_DEBUG_SEVERITY_HIGH, - "UBO %d unbound, %s shader uniform data " - "will be undefined.", - range->block, - _mesa_shader_stage_to_string(stage)); + _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 " + "will be undefined.", + range->block, + _mesa_shader_stage_to_string(stage)); continue; } diff --git a/src/mesa/drivers/dri/i965/intel_fbo.c b/src/mesa/drivers/dri/i965/intel_fbo.c index 5bcd846a1bc..b3ba09f2174 100644 --- a/src/mesa/drivers/dri/i965/intel_fbo.c +++ b/src/mesa/drivers/dri/i965/intel_fbo.c @@ -632,11 +632,11 @@ 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_DEBUG_SOURCE_API, \ - MESA_DEBUG_TYPE_OTHER, \ - MESA_DEBUG_SEVERITY_MEDIUM, \ - __VA_ARGS__); \ + _mesa_gl_debugf(ctx, &msg_id, \ + MESA_DEBUG_SOURCE_API, \ + MESA_DEBUG_TYPE_OTHER, \ + MESA_DEBUG_SEVERITY_MEDIUM, \ + __VA_ARGS__); \ } \ DBG(__VA_ARGS__); \ fb->_Status = error_id; \ diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 754e323caba..47a822f5d9b 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -2442,10 +2442,10 @@ 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_DEBUG_SOURCE_SHADER_COMPILER, - MESA_DEBUG_TYPE_OTHER, - MESA_DEBUG_SEVERITY_NOTIFICATION, fmt, args); + _mesa_gl_vdebugf(&brw->ctx, &msg_id, + MESA_DEBUG_SOURCE_SHADER_COMPILER, + MESA_DEBUG_TYPE_OTHER, + MESA_DEBUG_SEVERITY_NOTIFICATION, fmt, args); va_end(args); } @@ -2466,10 +2466,10 @@ 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_DEBUG_SOURCE_SHADER_COMPILER, - MESA_DEBUG_TYPE_PERFORMANCE, - MESA_DEBUG_SEVERITY_MEDIUM, fmt, args); + _mesa_gl_vdebugf(&brw->ctx, &msg_id, + MESA_DEBUG_SOURCE_SHADER_COMPILER, + MESA_DEBUG_TYPE_PERFORMANCE, + MESA_DEBUG_SEVERITY_MEDIUM, fmt, args); } va_end(args); } |