Home | History | Annotate | Download | only in main

Lines Matching defs:severity

54 #define severity_is(sev, kind) enum_is(sev, SEVERITY, kind)
140 * on all message IDs of a certain severity, then Insert() one of the
141 * previously specified IDs, giving us a known severity level, then call
142 * Control() on all message IDs of a certain severity level again.
145 * exist in any severity-specific list, so the second call will not
147 * The only entrypoint that gives a severity for a client-defined ID
151 * that an ID will either appear in none of the three severity lists,
154 * Because Insert() is the only place that will learn an ID's severity,
173 * 'source', 'type', and 'severity' are array indices like TYPE_ERROR,
178 GLuint id, int severity)
197 if (ctx->Debug.ClientIDs.Defaults[severity][source][type])
215 insert_at_tail(&nspace->Severity[severity], &entry->link);
266 GLuint id, GLenum severity)
273 sev = enum_to_index(severity);
289 return (severity != GL_DEBUG_SEVERITY_LOW_ARB);
300 GLuint id, GLenum severity, GLint len, const char *buf)
307 if (!should_log(ctx, source, type, id, severity))
311 ctx->Debug.Callback(source, type, id, severity,
334 emptySlot->severity = severity;
342 emptySlot->severity = GL_DEBUG_SEVERITY_HIGH_ARB;
363 GLuint *id, GLenum *severity, GLsizei bufSize, char *buf)
379 if (severity)
380 *severity = msg->severity;
407 * Verify that source, type, and severity are valid enums.
414 GLenum source, GLenum type, GLenum severity)
450 switch(severity) {
474 "(source=0x%x, type=0x%x, severity=0x%x)", callerstr,
475 source, type, severity);
482 GLenum severity, GLint length,
487 if (!validate_params(ctx, INSERT, source, type, severity))
501 _mesa_log_msg(ctx, source, type, id, severity, length, buf);
584 * of 'source', 'type', and 'severity'. Note that all three of these
589 * applicable combinations of source/type/severity, so that all the
595 int severity, GLboolean enabled)
614 if (severity == SEVERITY_ANY) {
615 severity = 0;
618 sevmax = severity+1;
621 for (sev = severity; sev < sevmax; sev++)
631 foreach(node, &ClientIDs->Namespaces[s][t].Severity[sev]) {
655 int source, type, severity;
660 severity = enum_to_index(eseverity);
663 assert(severity == SEVERITY_ANY && type != TYPE_ANY
672 control_app_messages_by_group(ctx, source, type, severity, enabled);
676 _mesa_DebugMessageControlARB(GLenum source, GLenum type, GLenum severity,
688 if (!validate_params(ctx, CONTROL, source, type, severity))
691 if (count && (severity != GL_DONT_CARE || type == GL_DONT_CARE
694 "(When passing an array of ids, severity must be"
700 control_app_messages(ctx, source, type, severity, count, ids, enabled);
702 if (severity_is(severity, HIGH)) {
750 /* Enable all the messages with severity HIGH or MEDIUM by default. */
769 make_empty_list(&ClientIDs->Namespaces[s][t].Severity[sev]);
787 foreach_s(node, tmp, &ClientIDs->Namespaces[s][t].Severity[sev]) {
1089 severity;
1094 severity = GL_DEBUG_SEVERITY_HIGH_ARB;
1114 _mesa_log_msg(ctx, source, type, id, severity, len, msg);