summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/errors.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-02-22 10:43:40 -0800
committerEric Anholt <eric@anholt.net>2013-03-05 14:24:59 -0800
commit30256805784450b8bb9d4dabfb56226271ca9d24 (patch)
tree0124a251ffd9e8b5febe0ce026ba6e88b9aa56af /src/mesa/main/errors.h
parent7beb93456d808002b235cd638b0871a4974e245e (diff)
downloadexternal_mesa3d-30256805784450b8bb9d4dabfb56226271ca9d24.zip
external_mesa3d-30256805784450b8bb9d4dabfb56226271ca9d24.tar.gz
external_mesa3d-30256805784450b8bb9d4dabfb56226271ca9d24.tar.bz2
mesa: Add support for GL_ARB_debug_output with dynamic ID allocation.
We can emit messages now without always having to use the same ID for each, or having a giant table of all possible errors in mtypes.h. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'src/mesa/main/errors.h')
-rw-r--r--src/mesa/main/errors.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mesa/main/errors.h b/src/mesa/main/errors.h
index c92ee0a..aa69931 100644
--- a/src/mesa/main/errors.h
+++ b/src/mesa/main/errors.h
@@ -44,8 +44,9 @@
extern "C" {
#endif
+#include "mtypes.h"
+
struct _glapi_table;
-struct gl_context;
extern void
_mesa_init_errors( struct gl_context *ctx );
@@ -66,6 +67,13 @@ extern void
_mesa_debug( const struct gl_context *ctx, const char *fmtString, ... ) PRINTFLIKE(2, 3);
extern void
+_mesa_gl_debug(struct gl_context *ctx,
+ GLuint *id,
+ enum mesa_debug_type type,
+ enum mesa_debug_severity severity,
+ const char *fmtString, ...) PRINTFLIKE(5, 6);
+
+extern void
_mesa_shader_debug( struct gl_context *ctx, GLenum type, GLuint id, const char *msg, int len );
void GLAPIENTRY