Home | History | Annotate | Download | only in main

Lines Matching defs:source

55 #define source_is(s, kind) enum_is(s, SOURCE, kind)
173 * 'source', 'type', and 'severity' are array indices like TYPE_ERROR,
177 get_message_state(struct gl_context *ctx, int source, int type,
181 &ctx->Debug.ClientIDs.Namespaces[source][type];
197 if (ctx->Debug.ClientIDs.Defaults[severity][source][type])
225 * 'source' and 'type' are array indices like TYPE_ERROR, not GL enums.
228 set_message_state(struct gl_context *ctx, int source, int type,
232 &ctx->Debug.ClientIDs.Namespaces[source][type];
265 should_log(struct gl_context *ctx, GLenum source, GLenum type,
268 if (source == GL_DEBUG_SOURCE_APPLICATION_ARB ||
269 source == GL_DEBUG_SOURCE_THIRD_PARTY_ARB) {
271 s = enum_to_index(source);
279 if (source_is(source, API))
281 if (source_is(source, WINDOW_SYSTEM))
283 if (source_is(source, SHADER_COMPILER))
285 if (source_is(source, OTHER))
299 _mesa_log_msg(struct gl_context *ctx, GLenum source, GLenum type,
307 if (!should_log(ctx, source, type, id, severity))
311 ctx->Debug.Callback(source, type, id, severity,
331 emptySlot->source = source;
339 emptySlot->source = GL_DEBUG_SOURCE_OTHER_ARB;
362 _mesa_get_msg(struct gl_context *ctx, GLenum *source, GLenum *type,
381 if (source)
382 *source = msg->source;
407 * Verify that source, type, and severity are valid enums.
408 * glDebugMessageInsertARB only accepts two values for 'source',
414 GLenum source, GLenum type, GLenum severity)
418 switch(source) {
474 "(source=0x%x, type=0x%x, severity=0x%x)", callerstr,
475 source, type, severity);
481 _mesa_DebugMessageInsertARB(GLenum source, GLenum type, GLuint id,
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
594 control_app_messages_by_group(struct gl_context *ctx, int source, int type,
600 if (source == SOURCE_ANY) {
601 source = 0;
604 smax = source+1;
622 for (s = source; s < smax; s++)
639 * Debugging-message namespaces with the source APPLICATION or THIRD_PARTY
655 int source, type, severity;
658 source = enum_to_index(esource);
664 && source != SOURCE_ANY);
667 set_message_state(ctx, source, type, ids[i], enabled);
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))
692 || source == GL_DONT_CARE)) {
695 " GL_DONT_CARE, and source and type must not be GL_DONT_CARE.");
699 if (source_is(source, APPLICATION) || source_is(source, THIRD_PARTY))
700 control_app_messages(ctx, source, type, severity, count, ids, enabled);
704 if (source_is(source, API))
707 if (source_is(source, WINDOW_SYSTEM))
710 if (source_is(source, SHADER_COMPILER))
713 if (source_is(source, OTHER))
1088 GLenum source = GL_DEBUG_SOURCE_SHADER_COMPILER_ARB,
1114 _mesa_log_msg(ctx, source, type, id, severity, len, msg);