Home | History | Annotate | Download | only in main

Lines Matching defs:debug

181          &ctx->Debug.ClientIDs.Namespaces[source][type];
197 if (ctx->Debug.ClientIDs.Defaults[severity][source][type])
232 &ctx->Debug.ClientIDs.Namespaces[source][type];
280 return ctx->Debug.ApiErrors[id];
282 return ctx->Debug.WinsysErrors[id];
284 return ctx->Debug.ShaderErrors[id];
286 return ctx->Debug.OtherErrors[id];
310 if (ctx->Debug.Callback) {
311 ctx->Debug.Callback(source, type, id, severity,
312 len, buf, ctx->Debug.CallbackData);
316 if (ctx->Debug.NumMessages == MAX_DEBUG_LOGGED_MESSAGES)
319 nextEmpty = (ctx->Debug.NextMsg + ctx->Debug.NumMessages)
321 emptySlot = &ctx->Debug.Log[nextEmpty];
345 if (ctx->Debug.NumMessages == 0)
346 ctx->Debug.NextMsgLength = ctx->Debug.Log[ctx->Debug.NextMsg].length;
348 ctx->Debug.NumMessages++;
352 * Pop the oldest debug message out of the log.
368 if (ctx->Debug.NumMessages == 0)
371 msg = &ctx->Debug.Log[ctx->Debug.NextMsg];
374 assert(length > 0 && length == ctx->Debug.NextMsgLength);
398 ctx->Debug.NumMessages--;
399 ctx->Debug.NextMsg++;
400 ctx->Debug.NextMsg %= MAX_DEBUG_LOGGED_MESSAGES;
401 ctx->Debug.NextMsgLength = ctx->Debug.Log[ctx->Debug.NextMsg].length;
597 struct gl_client_debug *ClientIDs = &ctx->Debug.ClientIDs;
705 control_messages(ctx->Debug.ApiErrors, API_ERROR_COUNT,
708 control_messages(ctx->Debug.WinsysErrors, WINSYS_ERROR_COUNT,
711 control_messages(ctx->Debug.ShaderErrors, SHADER_ERROR_COUNT,
714 control_messages(ctx->Debug.OtherErrors, OTHER_ERROR_COUNT,
724 ctx->Debug.Callback = callback;
725 ctx->Debug.CallbackData = (void *) userParam;
741 struct gl_client_debug *ClientIDs = &ctx->Debug.ClientIDs;
743 ctx->Debug.Callback = NULL;
744 ctx->Debug.SyncOutput = GL_FALSE;
745 ctx->Debug.Log[0].length = 0;
746 ctx->Debug.NumMessages = 0;
747 ctx->Debug.NextMsg = 0;
748 ctx->Debug.NextMsgLength = 0;
751 memset(ctx->Debug.ApiErrors, GL_TRUE, sizeof ctx->Debug.ApiErrors);
752 memset(ctx->Debug.WinsysErrors, GL_TRUE, sizeof ctx->Debug.WinsysErrors);
753 memset(ctx->Debug.ShaderErrors, GL_TRUE, sizeof ctx->Debug.ShaderErrors);
754 memset(ctx->Debug.OtherErrors, GL_TRUE, sizeof ctx->Debug.OtherErrors);
762 /* Initialize state for filtering client-provided debug messages. */
777 struct gl_client_debug *ClientIDs = &ctx->Debug.ClientIDs;
779 /* Tear down state for filtering client-provided debug messages. */
803 static int debug = -1;
806 /* Init the local 'debug' var once.
810 if (debug == -1) {
819 #ifdef DEBUG
820 /* in debug builds, print messages unless MESA_DEBUG="silent" */
822 debug = 0;
824 debug = 1;
827 debug = _mesa_getenv("MESA_DEBUG") != NULL;
832 if (debug) {
905 * either DEBUG is defined or the MESA_DEBUG env var is set.
957 static GLint debug = -1;
959 /* Check debug environment variable only once:
961 if (debug == -1) {
964 #ifdef DEBUG
966 debug = GL_FALSE;
968 debug = GL_TRUE;
971 debug = GL_TRUE;
973 debug = GL_FALSE;
977 if (debug) {
995 * If debugging is enabled (either at compile-time via the DEBUG macro, or
1053 * Report debug information. Print error message to stderr via fprintf().
1054 * No-op if DEBUG mode not enabled.
1062 #ifdef DEBUG
1069 #endif /* DEBUG */
1076 * Report debug information from the shader compiler via GL_ARB_debug_output.