History log of /external/mesa3d/src/mesa/main/errors.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
da0bc7b6466d0c149024b4206a2299cb4edc4b0b 18-Nov-2016 Brian Paul <brianp@vmware.com> mesa: remove unneeded #includes in errors.c

Reviewed-by: Vinson Lee <vlee@freedesktop.org>
/external/mesa3d/src/mesa/main/errors.c
0d1e240a4ff674f97e3a1cab05c80385d04618da 18-Nov-2016 Brian Paul <brianp@vmware.com> mesa: remove trailing whitespace in errors.c

Reviewed-by: Vinson Lee <vlee@freedesktop.org>
/external/mesa3d/src/mesa/main/errors.c
5fdbfb8d6fa2e1521cf2f60e80ac571a37ab22a2 08-Feb-2016 Brian Paul <brianp@vmware.com> mesa: move GL_ARB_debug_output code into new debug_output.c file

The errors.c file had grown quite large so split off this extension
code into its own file. This involved making a handful of functions
non-static.

Acked-by: Timothy Arceri <timothy.arceri@collabora.com>
/external/mesa3d/src/mesa/main/errors.c
a6a99fbf05865efcb628ecb2a19d1d77db34c865 05-Dec-2015 Rob Clark <robclark@freedesktop.org> mesa: wire up EmitStringMarker for KHR_debug

The extension spec[1] describes DEBUG_TYPE_MARKER as "Annotation of the
command stream". So for DEBUG_TYPE_MARKER, also pass the buf to the
driver's EmitStringMarker() to be inserted in the command stream.

[1] https://www.opengl.org/registry/specs/KHR/debug.txt

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/main/errors.c
1f7a96e005be0c0941df5487a11c53f048ebd58a 10-Aug-2015 Rob Clark <robclark@freedesktop.org> mesa: add GREMEDY_string_marker

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/main/errors.c
5a23f6bd8d8d26e0e75801df44cc228f15f9768e 26-Nov-2015 Emil Velikov <emil.l.velikov@gmail.com> mesa: rework the meaning of gl_debug_message::length

Currently it stores strlen(buf) whenever the user originally provided a
negative value for length.

Although I've not seen any explicit text in the spec, CTS requires that
the very same length (be that negative value or not) is returned back on
Pop.

So let's push down the length < 0 checks, tweak the meaning of
gl_debug_message::length and fix GetDebugMessageLog to add and count the
null terminators, as required by the spec.

v2: return correct total length in GetDebugMessageLog
v3: rebase (drop _mesa_shader_debug hunk).

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
/external/mesa3d/src/mesa/main/errors.c
622186fbdf47e4c77aadba3e38567636ecbcccf5 26-Nov-2015 Emil Velikov <emil.l.velikov@gmail.com> mesa: errors: validate the length of null terminated string

We're about to rework the meaning of gl_debug_message::length to only
store the user provided data. Thus we should add an explicit validation
for null terminated strings.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
/external/mesa3d/src/mesa/main/errors.c
66fea8bd9662c8fc62d87cafce89adc27e3172a2 26-Nov-2015 Emil Velikov <emil.l.velikov@gmail.com> mesa: accept TYPE_PUSH/POP_GROUP with glDebugMessageInsert

These new (relative to ARB_debug_output) tokens, have been explicitly
separated from the existing ones in the spec text. With the reference
to glDebugMessageInsert was dropped.

At the same time, further down the spec says:
"The value of <type> must be one of the values from Table 5.4"

... and these two are listed in Table 5.4.

The GL 4.3 and GLES 3.2 do not give any hints on the former
'definition', plus CTS requires that the tokens are valid values for
glDebugMessageInsert.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
/external/mesa3d/src/mesa/main/errors.c
53be28107b44200a59c678c5d2234efeb48d0b35 26-Nov-2015 Emil Velikov <emil.l.velikov@gmail.com> mesa: add SEVERITY_NOTIFICATION to default state

As per the spec quote:

"All messages are initially enabled unless their assigned severity
is DEBUG_SEVERITY_LOW"

We already had MEDIUM and HIGH set, let's toggle NOTIFICATION as well.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
/external/mesa3d/src/mesa/main/errors.c
078dd6a0b4135b5181eea538473fe53a9bc61223 26-Nov-2015 Emil Velikov <emil.l.velikov@gmail.com> mesa: return the correct value for GroupStackDepth

We already have one group (the default) as specified in the spec. So
lets return its size, rather than the index of the current group.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
/external/mesa3d/src/mesa/main/errors.c
f39954bf7cf09199a1cccb71e0e858c0b2054c6d 26-Nov-2015 Emil Velikov <emil.l.velikov@gmail.com> mesa: rename GroupStackDepth to CurrentGroup

The variable is used as the actual index, rather than the size of the
group stack - rename it to reflect that.

Suggested-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
/external/mesa3d/src/mesa/main/errors.c
d37ebed470c6c37abfc6fe42079bff027ff58e9d 27-Nov-2015 Emil Velikov <emil.l.velikov@gmail.com> mesa: remove len argument from _mesa_shader_debug()

There was only a single user which was using strlen(buf).
As this function is not user facing (i.e. we don't need to feed back
original length via a callback), we can simplify things.

Suggested-by: Timothy Arceri <timothy.arceri@collabora.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
/external/mesa3d/src/mesa/main/errors.c
0743e14aeef8f91bdd1fbd05f615458cf2b01d41 20-Nov-2015 Brian Paul <brianp@vmware.com> mesa: remove unused var in _mesa_PushDebugGroup()

Trivial.
/external/mesa3d/src/mesa/main/errors.c
af272368547600e1db87d4dd5d718e41ea9db6c0 05-Nov-2015 Emil Velikov <emil.l.velikov@gmail.com> mesa: use the correct string for the ES GL_KHR_debug functions

As defined in the spec

when implemented in an OpenGL ES context, all entry points defined
by this extension must have a "KHR" suffix.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/mesa3d/src/mesa/main/errors.c
2f11e92cef51c88a09bc778e2ceca4ab50cf0017 18-Jul-2015 Kenneth Graunke <kenneth@whitecape.org> mesa: Rename _mesa_lookup_enum_by_nr() to _mesa_enum_to_string().

Generated by sed; no manual changes.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
b0ad3ce4e7b9a23ab8fad4823e3c1094d6cf42a6 18-Apr-2015 Kenneth Graunke <kenneth@whitecape.org> mesa: Add a va_args variant of _mesa_gl_debug().

This will be useful for wrapper functions.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
/external/mesa3d/src/mesa/main/errors.c
08a1046f6777c589f90eae3fd1e7e41ca364c45c 08-Jun-2015 Francisco Jerez <currojerez@riseup.net> mesa: Include simple_list.h explicitly in errors.c.

This seems to be the only user of simple_list in core mesa not
including the header explicitly.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
2926bbfb280b2eb195cc031991c956da38d89508 14-Apr-2015 Brian Paul <brianp@vmware.com> mesa: add _mesa_log(), _mesa_get_log_file() functions

_mesa_log() simply writes log information to stderr or MESA_LOG_FILE.
_mesa_get_log_file() returns the file handle to use for logging.

This will be used for shader dumping/logging instead of always printing
to stderr.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
db29869205ecc2d7254698daac3e9027f6c92619 05-Mar-2015 Brian Paul <brianp@vmware.com> mesa: include stdio.h where needed

Instead of relying on glapi.h or some other header to provide it.

Acked-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
c2e130f8201239f836f429cab3beddb4d66a3357 28-Feb-2015 Brian Paul <brianp@vmware.com> mesa/main: replace Elements() with ARRAY_SIZE()

We've been using a mix of these two macros for a while now. Let's
just use the later everywhere. It seems to be the convention used
by other open-source projects.

Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
/external/mesa3d/src/mesa/main/errors.c
135b8c65305c05c1ea9145141bad670003270c41 25-Feb-2015 Brian Paul <brianp@vmware.com> mesa: include stdarg.h only where it's used

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
bfcdb843830bba0190e00e35e3c5c18c4bdb5de1 21-Feb-2015 Matt Turner <mattst88@gmail.com> mesa: Use assert() instead of ASSERT wrapper.

Acked-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/main/errors.c
3cb10cce371cb62e0c4a988ab939bf640b75ebab 15-Jan-2015 Jan Vesely <jan.vesely@rutgers.edu> mesa: Fix some signed-unsigned comparison warnings

v2: s/unsigned int/unsigned/ in prog_optimize.c

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: David Heidelberg <david@ixit.cz>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
5b1e51bfbe6f8b2fa51065bc6e5706c337211d3c 14-Nov-2014 Matt Turner <mattst88@gmail.com> mesa: Add a source parameter to _mesa_gl_debug.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/main/errors.c
4ded2ef5e84f4696b4e5ed5bd6ad1efe933bbc39 20-Aug-2014 Chia-I Wu <olvaffe@gmail.com> mesa: protect the debug state with a mutex

We are about to change mesa to spawn threads for deferred glCompileShader and
glLinkProgram, and we need to make sure those threads can send compiler
warnings/errors to the debug output safely.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/main/errors.c
5980fc35c9e2e25a5a53cb1b38245ad763885cca 22-Sep-2014 Matt Turner <mattst88@gmail.com> mesa: Drop _mesa_getenv() wrapper.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/mesa3d/src/mesa/main/errors.c
9499d6e358786f1ed3ed79e16fd301106cd08ddd 22-Sep-2014 Matt Turner <mattst88@gmail.com> mesa: Unifdef _WIN32_WCE.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/mesa3d/src/mesa/main/errors.c
72e55bb6888ff4d6b69b10d9c58573e4c3d492ec 25-Feb-2014 Kenneth Graunke <kenneth@whitecape.org> util: Move the open-addressing linear-probing hash_table to src/util.

This hash table is used in core Mesa, the GLSL compiler, and the i965
driver, which makes it a good candidate for the new src/util module.

It's much faster than program/hash_table.[ch] (see commit 6991c2922f5
for data), and José's u_hash_table.c has a comment saying Gallium should
probably consider switching to a linear probing hash table at some point.
So this seems like the best candidate for a shared data structure.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>

v2 (Jason Ekstrand): Pick up another hash_table use and patch up scons

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
/external/mesa3d/src/mesa/main/errors.c
59ad2e6696c51dc9b3514770abb550df663ecc7b 04-Mar-2014 Ian Romanick <ian.d.romanick@intel.com> mesa: Add _mesa_error_no_memory for logging out-of-memory messages

This can be called from locations that don't have a context pointer
handy. This patch also adds enough infrastructure so that the unit
tests for the GLSL compiler and the stand-alone compiler will build and
function.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
/external/mesa3d/src/mesa/main/errors.c
7b2dd89041f458e90e65c4bf1edb9ff9580cbaee 24-Apr-2014 Chia-I Wu <olvaffe@gmail.com> mesa: overhaul debug namespace support

_mesa_HashTable is not well-suited for us: it locks a mutex unnecessarily and
it does not accept 0 as the key (and have branches to handle 1 specially).
What we really need is a sparse array. Whether it should be implemented as a
hash table, a list, or a bsearch()-able array requires investigations of the
use models.

We choose to implement it as a list for now, assuming it is common to have a
short list of IDs in each (source, type) namespace. The code is simpler, and
the memory footprint is lower. This also fixes several corner cases such as
making messages to have different states at different severities.

v2: use GLbitfield for State/DefaultState, and add a comment

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
70e43370145d58f389627b11d075d8f6dbcf6ae3 23-Apr-2014 Chia-I Wu <olvaffe@gmail.com> mesa: delay copying of debug groups

Do not copy the debug group until it is about to be written. One likely
scenario of using glPushDebugGroup/glPopDebugGroup is to enclose a sequence of
GL commands and give them a human-readable description. There is no message
control change in this scenario, and thus no need to copy.

This also reduces the initial size of gl_debug_state from 306KB to 7KB.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
a30c4c6ca018413db8f8ca5c766a6f0d3f8af6be 23-Apr-2014 Chia-I Wu <olvaffe@gmail.com> mesa: clean up debug output namespace handling

Add functions to provide these operations on a struct gl_debug_namespace:

init(): initialize the namespace
copy(): copy all elements from one namespace to another
clear(): clear all elements (to free the memories)
set(): set the value of an element
set_all(): set the value of all elements
get(): get the value of an element

A debug namespace is like a sparse array. The length of the array is huge,
2^sizeof(GLuint), but most of the elements assume the same value sepcified by
set_all().

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
44a13747933d1e9306138f5b9483f1e2e1410c03 23-Apr-2014 Chia-I Wu <olvaffe@gmail.com> mesa: clean up debug groups

Add struct gl_debug_group to hold all namespaces of a debug group. Replace
the 3-dimensional array, Namespaces, in struct gl_debug_state by a
1-dimensional array of type struct gl_debug_groups.

Turn the 4-dimensional array, Defaults, in struct gl_debug_state to a
1-dimensional array in struct gl_debug_namespace.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
e412305f9f05956c21a7f97ada2d4795107e0203 23-Apr-2014 Chia-I Wu <olvaffe@gmail.com> mesa: clean up debug message log

Remove NextMsgLength, and move members of struct gl_debug_state that belong to
the message log to a new struct, gl_debug_log. Rename gl_debug_msg to
gl_debug_message.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
cf61ea3029b7c9a3e334ea7f1b45844fad2d0a77 22-Apr-2014 Chia-I Wu <olvaffe@gmail.com> mesa: use accessors for struct gl_debug_state

When GL_DEBUG_OUTPUT_SYNCHRONOUS is GL_TRUE, drivers are allowed to log debug
messages from other threads. That requires gl_debug_state to be protected by
a mutex, even when it is a context state. While we do not spawn threads in
Mesa yet, this commit makes it easier to do when we want to.

Since the definition of struct gl_debug_state is no longer needed by the rest
of the driver, move it to main/errors.c. This should make it even harder to
use the struct incorrectly.

v2: add comments for the accessors

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
94e45c98e18f4af8d289a4db30b3c076029c60c6 22-Apr-2014 Chia-I Wu <olvaffe@gmail.com> mesa: eliminate debug output message_insert

Add validate_length, and call it together with log_msg directly instead of
message_insert. No functional change.

v2: make sure length is non-negative (i.e., known) before calling
validate_length, noted by Timothy Arceri

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
188d22d9b7b7e3da99506d14e71166a11d53968b 22-Apr-2014 Chia-I Wu <olvaffe@gmail.com> mesa: eliminate debug output should_log

In both call sites, it could be easily replaced by direct
debug_is_message_enabled calls. No functional change.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
c9dfb6b76cccfaf1dc8a6d24471e227656670f0b 22-Apr-2014 Chia-I Wu <olvaffe@gmail.com> mesa: eliminate debug output control_app_messages

Merge control_app_messages with the only caller. Eliminate set_message_state
and control_messages too as they are unused. No functional change.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
274913c42c2359a9f7716beb72095613a8a934c6 22-Apr-2014 Chia-I Wu <olvaffe@gmail.com> mesa: eliminate debug output get_msg

Merge get_msg with the only caller. No functional change.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
04a8baad3721896f70353638866423bd699fbcd2 22-Apr-2014 Chia-I Wu <olvaffe@gmail.com> mesa: refactor _mesa_PopDebugGroup and _mesa_free_errors_data

Replace free_errors_data by debug_clear_group. Add debug_pop_group and
debug_destroy for use in _mesa_PopDebugGroup and _mesa_free_errors_data
respectively. No funcitonal change.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
f1d00dce439eb103f1be9e83623a5cdd11f61067 21-Apr-2014 Chia-I Wu <olvaffe@gmail.com> mesa: refactor _mesa_PushDebugGroup

Move group copying to debug_push_group. Save the group message before pushing
instead of after, since we will need it after popping. No functional change
otherwise.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
de0e0ae4b69b5388f64ed926fb4e835b2b1782cc 22-Apr-2014 Chia-I Wu <olvaffe@gmail.com> mesa: refactor debug output control_messages

Move most of the code to debug_set_message_enable_all. No functional change.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
7e9451dc4605446f3472ae332545297002d67cea 22-Apr-2014 Chia-I Wu <olvaffe@gmail.com> mesa: refactor debug output get_msg

Move message fetching to debug_fetch_message and message deletion to
debug_delete_messages. No functional change.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
e9d1b5c8aff79f749f8719ba842c3c010e0016c4 22-Apr-2014 Chia-I Wu <olvaffe@gmail.com> mesa: refactor debug out log_msg

Move message logging to debug_log_message. Replace store_message_details by
debug_message_store. No functional change.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
880183fee8933fee62131a61e54b7fcc09a9d6b1 22-Apr-2014 Chia-I Wu <olvaffe@gmail.com> mesa: refactor debug output set_message_state

Move message state update to debug_set_message_enable. No functional change.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
7554d27de456848e882f4eae1ef47f2b402b93e3 22-Apr-2014 Chia-I Wu <olvaffe@gmail.com> mesa: refactor debug output should_log

Move the message filtering logic to debug_is_message_enabled. No functional
change.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
672b209225c704f31a4780e95d2487013c8a1c3a 22-Apr-2014 Chia-I Wu <olvaffe@gmail.com> mesa: refactor _mesa_get_debug_state

Move gl_debug_state allocation to a new function, debug_create. No functional
change.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
00f31bdd32ee0e2e3ccb4d1c93a44c585b668d6f 10-Apr-2014 Brian Paul <brianp@vmware.com> mesa: s/FREE/free/ in _mesa_free_errors_data()

Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/errors.c
6e627b49f9c9b62bb116a738305a564d4f28e633 12-Mar-2014 Mike Stroyan <mike@lunarg.com> mesa: Release gl_debug_state when destroying context.

Commit 6e8d04a caused a leak by allocating ctx->Debug but never freeing it.
Release the memory in _mesa_free_errors_data when destroying a context.
Use FREE to match CALLOC_STRUCT from _mesa_get_debug_state.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
6c3f5abc2dc99a904994fb41d6e48527ddcdf7de 08-Mar-2014 Timothy Arceri <t_arceri@yahoo.com.au> mesa: add missing DebugMessageControl types

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
fb78fa58d2a60110bfd428ca8d41b746b69b6724 08-Mar-2014 Timothy Arceri <t_arceri@yahoo.com.au> mesa: make ARB_debug_output functions an alias of
KHR_debug

Also update dispatch sanity removing ARB_debug_output checks and
removing KHR_debug placeholders as the checks have already been added

V2: Make sure we exit case statements with conditional breaks rather than
just dropping through.

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
db806cacfd8d91e9da5614e1be6e050bc318ec6a 01-Mar-2014 Brian Paul <brianp@vmware.com> mesa: remove empty glthread.h file

Reviewed-by: José Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
d129ea7fa2e57288f64cd247a0ac6d876e1717d2 01-Mar-2014 Brian Paul <brianp@vmware.com> mesa: switch to c11 mutex functions

Reviewed-by: José Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
6e8d04ac3e9074bffe25a1ef9e6b198caaa30385 07-Feb-2014 Brian Paul <brianp@vmware.com> mesa: allocate gl_debug_state on demand

We don't need to allocate all the state related to GL_ARB_debug_output
until some aspect of that extension is actually needed.

The sizeof(gl_debug_state) is huge (~285KB on 64-bit systems), not even
counting the 54(!) hash tables and lists that it contains. This change
reduces the size of gl_context alone from 431KB bytes to 145KB bytes on
64-bit systems and from 277KB bytes to 78KB bytes on 32-bit systems.

Reviewed-by: Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/errors.c
31b2625cb50da6c6ac40ca1c9f2729e846b1e371 07-Feb-2014 Brian Paul <brianp@vmware.com> mesa: trivial clean-ups in errors.c

Whitespace changes, 78-column rewrapping, comment clean-ups, add
some braces, etc.

Reviewed-by: Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/errors.c
1dc209d8f244009a7a211012abb98cd8211dbb65 07-Feb-2014 Brian Paul <brianp@vmware.com> mesa: remove _mesa_ prefix from some static functions

Reviewed-by: Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/errors.c
09e385ee3bbe1d8bb572f2cdb6aa73401caa71b9 10-Sep-2013 Vinson Lee <vlee@freedesktop.org> mesa: Use correct enum conversion function.

Fixes "Mixing enum types" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
6964fa7ea3770b1c23fa84485abf0c51c78ffbbc 26-Aug-2013 Timothy Arceri <t_arceri@yahoo.com.au> mesa: Remap debug type and severity

Remap any type or severity exclusive to KHR_debug to
something suitable for ARB_debug_output

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
b5c4795f386976830370f56d1fa5a1c4099d88e2 26-Aug-2013 Timothy Arceri <t_arceri@yahoo.com.au> mesa: Implement GL_DEBUG_OUTPUT

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
797b9dc3ffdba54724127bbfe6ef52e248bdfaf5 26-Aug-2013 Timothy Arceri <t_arceri@yahoo.com.au> mesa: Implement glPushDebugGroup and glPopDebugGroup

V4: fixes _mesa_error() compiler warnings (BrianP).

V3: removed C++ style comment

V2: fixed spelling typo in comment

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
f5badf467155599755258e2370845622d2e8c496 26-Aug-2013 Timothy Arceri <t_arceri@yahoo.com.au> mesa: Share common code between ARB_debug_output and KHR_debug functions

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
77d38fd3fb5a915911f81bca538c0f0b9d8ad64f 26-Aug-2013 Timothy Arceri <t_arceri@yahoo.com.au> mesa: Add some constants and state variables for KHR_debug functions

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
f0072e3c6b0bd46d8ebf7ac0a2cf1bf63dc370e8 21-Aug-2013 Timothy Arceri <t_arceri@yahoo.com.au> mesa: Fix assertion error with glDebugMessageControl

enums were being converted twice resulting in incorrect values.
The extra conversion has been removed and the redundant assert is
removed also.

Cc: 9.2 <mesa-stable@lists.freedesktop.org>

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
cb2de08f27311166a44c379532a502c0b1b862d0 08-Jul-2013 Brian Paul <brianp@vmware.com> mesa: update glext.h to version 20130708

This update fixes the problem with duplicated typedefs for
GLclampf and GLclampd in the previous version.

It also changes some parameter types for glDebugMessageCallbackARB()
and glTransformFeedbackVaryingsEXT().

Note we should someday update the glapi-gen code so that it
understands void pointer parameters. Currently, the Python code
only understands "GLvoid *" but not "void *". Luckily, the
compilers don't seem to complain about mixing GLvoid and void.
/external/mesa3d/src/mesa/main/errors.c
15436adab0ae2dea5d62567326f1f3969939781b 26-Jun-2013 Brian Paul <brianp@vmware.com> mesa: remove const from glDebugMessageCallbackARB() function parameter

The new 20130624 version of glext.h removed the const qualifier on
the 'userParam' parameter.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
3998cfa933dcd9134b75d9f0ae2c9cfcd6f2ee45 05-Jun-2013 Rico Schüller <kgbricola@web.de> mesa: remove outdated version lines in comments

Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
3d8d5b298a268b119d840bc9bae0ee9e0c9244a9 21-Apr-2013 Kenneth Graunke <kenneth@whitecape.org> mesa: Restore 78-column wrapping of license text in C-style comments.

The previous commit introduced extra words, breaking the formatting.

This text transformation was done automatically via the following shell
command:
$ git grep 'THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY' | sed 's/:.*$//' | xargs -I {} sh -c 'vim -e -s {} < vimscript

where 'vimscript' is a file containing:
/THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY/;/\*\// !fmt -w 78 -p ' * '
:wq

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
96ff2edc73ccf11d4d198ba3665507f73ae4a9f7 21-Apr-2013 Kenneth Graunke <kenneth@whitecape.org> mesa: Add "OR COPYRIGHT HOLDERS" to license text disclaiming liability.

This brings the license text in line with the MIT License as published
on the Open Source Initiative website:

http://opensource.org/licenses/mit-license.php

Generated automatically be the following shell command:
$ git grep 'THE AUTHORS BE LIABLE' | sed 's/:.*$//g' | xargs -I '{}' \
sed -i 's/THE AUTHORS/THE AUTHORS OR COPYRIGHT HOLDERS/' {}

This introduces some wrapping issues, to be fixed in the next commit.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
dd404bc94f78a1766527becee03f8ef6ae3a799b 21-Apr-2013 Kenneth Graunke <kenneth@whitecape.org> mesa: Change "BRIAN PAUL" to "THE AUTHORS" in license text.

Generated automatically be the following shell command:
$ git grep 'BRIAN PAUL BE LIABLE' | sed 's/:.*$//g' | xargs -I '{}' \
sed -i 's/BRIAN PAUL/THE AUTHORS/' {}

The intention here is to protect all authors, not just Brian Paul. I
believe that was already the sensible interpretation, but spelling it
out is probably better.

More practically, it also prevents people from accidentally copy &
pasting the license into a new file which says Brian is not liable when
he isn't even one of the authors.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
e59fc3faa504fe56a3b2702bf49a70d392faac57 09-Mar-2013 Matt Turner <mattst88@gmail.com> mesa: Use PACKAGE_BUGREPORT macro.

Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/main/errors.c
439c3d4e313370823d49b53f031697cc8b18d171 09-Mar-2013 Matt Turner <mattst88@gmail.com> mesa: Replace MESA_VERSION with PACKAGE_VERSION.

One fewer place to have to update.

Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/main/errors.c
543d0328853f60b88748b28ba702f5f12f000b95 11-Mar-2013 Vinson Lee <vlee@freedesktop.org> mesa: Use correct functions for enum conversion.

Fixes mixing enum types defects reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/main/errors.c
65afa11dc632ae83c58781201f1c8c75a1b89eb0 23-Feb-2013 Eric Anholt <eric@anholt.net> mesa: Remove the special enum for _mesa_error debug output.

Now all the per-message enums from mtypes are gone. Now we can extend
unique message IDs into all generators of debug output without having to
update mtypes.h for each one.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
/external/mesa3d/src/mesa/main/errors.c
d9249935db113e1244510de0165dc96a0766bba9 23-Feb-2013 Eric Anholt <eric@anholt.net> mesa: Remove the enum for the oom-within-debug-output case.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
/external/mesa3d/src/mesa/main/errors.c
c72cf538173329f639c2b64ef091dbd4a71e0bf6 23-Feb-2013 Eric Anholt <eric@anholt.net> mesa: Report ARB_debug_output for both shader errors and warnings.

This ends up reusing the dynamic ID support, so a silly enum gets to go
away. We don't assign good IDs to different messages yet, but at least
that's tractable now.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
/external/mesa3d/src/mesa/main/errors.c
30256805784450b8bb9d4dabfb56226271ca9d24 22-Feb-2013 Eric Anholt <eric@anholt.net> 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>
/external/mesa3d/src/mesa/main/errors.c
7beb93456d808002b235cd638b0871a4974e245e 12-Jul-2012 Eric Anholt <eric@anholt.net> mesa: Merge handling of application-provided and built-in error sources.

I want to have dynamic IDs so that we don't need to add to mtypes.h for
every error we might want to add. To do so, I need to get rid of the
static arrays and actually support all the crazy filtering of dynamic IDs
that we already support for application-provided error sources.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
/external/mesa3d/src/mesa/main/errors.c
88831a8d99249b7489995fd2ee94be3fe91f8ac8 23-Feb-2013 Eric Anholt <eric@anholt.net> mesa: Fix _mesa_problem() on context destroy after application debug output

This was apparently not noticed because we don't have any testing of
application-generated debug output. However, as I'm changing the
GL-generated debug output to use the same path as
application/middleware-generated debug output, this obviously became an
issue.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
/external/mesa3d/src/mesa/main/errors.c
e0d1e3b785134ef38961e358d8474d027f856539 23-Feb-2013 Eric Anholt <eric@anholt.net> mesa: Move debug type/severity enums to mesa core.

These will get reused by new ARB_debug_output messages in drivers/core,
instead of having the caller pass GL enums and have us immediately
switch-statement those into enums.

Add source enums will be handled in the next commit, because the way
different sources are handled at the moment is pretty strange.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
/external/mesa3d/src/mesa/main/errors.c
c42148d16e6208c2eb2421f2ebcf823c91b670de 22-Feb-2013 Eric Anholt <eric@anholt.net> mesa: Replace open-coded _mesa_lookup_enum_by_nr().

The new one doesn't have the same behavior for GL_NO_ERROR, but we don't
produce errors with GL_NO_ERROR as the error type.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
/external/mesa3d/src/mesa/main/errors.c
e022461c6435bb3f8c003ea4e5fd0b09cd91100c 12-Jul-2012 Eric Anholt <eric@anholt.net> mesa: Remove extra #define MAXSTRING duplicating MAX_DEBUG_MESSAGE_LENGTH.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
/external/mesa3d/src/mesa/main/errors.c
ab4c549378cc2e355e24b8cd3a4cbf28434fd6a8 18-Jan-2013 Eric Anholt <eric@anholt.net> mesa: Initially populate the display list with the exec list.

This cuts out a ton of code to make functions not set to a save_ variant
match.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/main/errors.c
f7fa946d1da96178e63e42dd8d8739d3e0f66e1d 19-Oct-2012 Paul Berry <stereotype441@gmail.com> dispatch: Make all API functions non-static.

Some of the functions that we store in the dispatch table are declared
as non-static in their .c files and are inserted into the dispatch
table directly by _mesa_create_exec_table(). Other functions are
declared as static, and are inserted into the dispatch table by a
dedicated function that lives in the same .c file
(e.g. _mesa_loopback_init_api_table() in api_loopback.c).

This patch makes all of these functions non-static, and creates
appropriate prototypes for them, so that in future patches we can
populate the entire dispatch table using a single code-generated
function.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
/external/mesa3d/src/mesa/main/errors.c
fe72a069d1fcce943f315907b4744b63158938b1 01-Sep-2012 Brian Paul <brianp@vmware.com> mesa: s/FREE/free/

v2: replace instances in dri/common/ dirs

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/errors.c
33bb8c051df3f2561c7b4a5ad7abefa3fce99d37 01-Sep-2012 Brian Paul <brianp@vmware.com> mesa: s/MALLOC/malloc/

v2: replace instances in dri/common/ dirs

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/errors.c
9881bf6e69b52efc1eb57a4027d9a8817ef8cbcb 27-Jun-2012 Brian Paul <brianp@vmware.com> mesa: more const qualifiers to match the latest glext.h

For some reason regular gcc on Linux didn't catch these but the mingw
compiler did (generated errors, not warnings).

v2: include the changes in src/mapi/ too
/external/mesa3d/src/mesa/main/errors.c
9ccf5bffe360def72c8f96340a524fdd672354ec 25-Jun-2012 Brian Paul <brianp@vmware.com> mesa: new MESA_LOG_FILE env var to log errors, warnings, etc., to a file

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
da35c2b38c1419690b6647fbc2f930cb04c6877f 09-May-2012 Brian Paul <brianp@vmware.com> mesa: define DEBUG_SILENT flag, use in output_if_debug()
/external/mesa3d/src/mesa/main/errors.c
58fee81c78c95b1b086aa39aa4e26762c8943680 02-Apr-2012 Dylan Noblesmith <nobled@dreamwidth.org> mesa: add _mesa_shader_debug()

This should be the one entrypoint libglsl needs
for GL_ARB_debug_output.

v2: added comments.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
6830e6515c840ff98a2ee5eb61e33dd5fb4d1ee2 12-Mar-2012 Brian Paul <brianp@vmware.com> mesa: fix _mesa_DebugMessageCallbackARB() to silence warnings

Reviewed-by: José Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/mesa/main/errors.c
7221f52389f788f95ccf5816e2370b5a1acef7f7 11-Mar-2012 José Fonseca <jose.r.fonseca@gmail.com> mesa: Prevent collision of ERROR define on Windows.

This issue might recur on other OSes. If so then it might be better
to remove the C-preprocessor magic, and use fully qualified defines
instead.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/main/errors.c
0e4508e077eab9d37879afbf4c857b58f1c49276 14-Feb-2012 Marek Olšák <maraeo@gmail.com> mesa: print GL errors via debug_output
/external/mesa3d/src/mesa/main/errors.c
ae4a8a59b7045dafb99e903d11ebbd9c4ee161d6 04-May-2011 nobled <nobled@dreamwidth.org> mesa: implement the last of GL_ARB_debug_output

Store client-defined message IDs in a hash table,
and sort them by severity into three linked lists
so they can be selected by severity level later.
/external/mesa3d/src/mesa/main/errors.c
f6f309394036ff5228f6351435a5eff202ef0008 02-May-2011 nobled <nobled@dreamwidth.org> mesa: add control for categories of application-provided messages

This state is needed for deciding whether or not to log
application messages with IDs that haven't been specifically
passed to glDebugMessageControlARB yet.

State for each individual ID number ever passed to
glDebugMessageControlARB (per-context) still needs to be added.
/external/mesa3d/src/mesa/main/errors.c
c68f0b8cabaa7adf3fac3bf07661491ad4001021 02-May-2011 nobled <nobled@dreamwidth.org> mesa: add glDebugMessageControlARB

Controlling the output of client-provided messages
isn't done yet.
/external/mesa3d/src/mesa/main/errors.c
76414cded8dcfc274fe47f347c64986680e8b95a 02-May-2011 nobled <nobled@dreamwidth.org> mesa: add message-toggle booleans for GL_ARB_debug_output
/external/mesa3d/src/mesa/main/errors.c
5dd750d685d3f80b3783b1205f6727cb867c049a 02-May-2011 nobled <nobled@dreamwidth.org> mesa: add some GL_ARB_debug_output functions
/external/mesa3d/src/mesa/main/errors.c
ed087ee49808a692ce8a0389fcf6c9da27f99d8e 01-May-2011 nobled <nobled@dreamwidth.org> mesa: add infrastructure for GL_ARB_debug_output

Marek v2: don't add the extension to extensions.c yet
/external/mesa3d/src/mesa/main/errors.c
5ab088c7e201ea7e55459a24a945abcaa90d12c6 01-May-2011 nobled <nobled@dreamwidth.org> mesa: split error handling into its own file

Also add _mesa_vsnprintf.
/external/mesa3d/src/mesa/main/errors.c