summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/errors.h
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-11-13 17:35:58 -0800
committerMatt Turner <mattst88@gmail.com>2014-12-05 16:43:31 -0800
commit5b1e51bfbe6f8b2fa51065bc6e5706c337211d3c (patch)
tree2451a3e37af302e58d407fe1f7ed9f492b329d68 /src/mesa/main/errors.h
parentbefdff81423a1b6a05969dfde59bfa9c521c4621 (diff)
downloadexternal_mesa3d-5b1e51bfbe6f8b2fa51065bc6e5706c337211d3c.zip
external_mesa3d-5b1e51bfbe6f8b2fa51065bc6e5706c337211d3c.tar.gz
external_mesa3d-5b1e51bfbe6f8b2fa51065bc6e5706c337211d3c.tar.bz2
mesa: Add a source parameter to _mesa_gl_debug.
Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa/main/errors.h')
-rw-r--r--src/mesa/main/errors.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/errors.h b/src/mesa/main/errors.h
index b388138..89d4d58 100644
--- a/src/mesa/main/errors.h
+++ b/src/mesa/main/errors.h
@@ -72,14 +72,16 @@ _mesa_debug( const struct gl_context *ctx, const char *fmtString, ... ) PRINTFLI
extern void
_mesa_gl_debug(struct gl_context *ctx,
GLuint *id,
+ enum mesa_debug_source source,
enum mesa_debug_type type,
enum mesa_debug_severity severity,
- const char *fmtString, ...) PRINTFLIKE(5, 6);
+ const char *fmtString, ...) PRINTFLIKE(6, 7);
#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_DEBUG_SOURCE_API, \
MESA_DEBUG_TYPE_PERFORMANCE, \
sev, \
__VA_ARGS__); \