Lines Matching defs:ID
47 GLuint ID;
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,
155 * it should insert an ID into the appropriate list, but only if the ID
171 * Returns the state of the given message ID in a client-controlled
178 GLuint id, int severity)
186 if (id)
187 state = (uintptr_t)_mesa_HashLookup(nspace->IDs, id);
191 /* Only do this once for each ID. This makes sure the ID exists in,
209 if (id)
210 _mesa_HashInsert(nspace->IDs, id, (void*)state);
214 entry->ID = id;
223 * Sets the state of the given message ID in a client-controlled
229 GLuint id, GLboolean enabled)
237 if (id)
238 state = (uintptr_t)_mesa_HashLookup(nspace->IDs, id);
251 if (id)
252 _mesa_HashInsert(nspace->IDs, id, (void*)state);
261 * each individual message is enabled or not. The message ID
266 GLuint id, GLenum severity)
275 return get_message_state(ctx, s, t, sev, id);
280 return ctx->Debug.ApiErrors[id];
282 return ctx->Debug.WinsysErrors[id];
284 return ctx->Debug.ShaderErrors[id];
286 return ctx->Debug.OtherErrors[id];
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,
333 emptySlot->id = id;
341 emptySlot->id = OTHER_ERROR_OUT_OF_MEMORY;
363 GLuint *id, GLenum *severity, GLsizei bufSize, char *buf)
385 if (id)
386 *id = msg->id;
481 _mesa_DebugMessageInsertARB(GLenum source, GLenum type, GLuint id,
501 _mesa_log_msg(ctx, source, type, id, severity, length, buf);
566 GLuint id;
567 for (id = 0; id < size; id++) {
568 array[id] = enabled;
575 /* XXX: The spec doesn't say what to do with a non-existent ID. */
633 set_message_state(ctx, s, t, entry->ID, enabled);
1080 * \param id The message ID within the given namespace.
1085 _mesa_shader_debug( struct gl_context *ctx, GLenum type, GLuint id,
1093 assert(id < SHADER_ERROR_COUNT);
1114 _mesa_log_msg(ctx, source, type, id, severity, len, msg);