[Mesa-dev] [PATCH 9/13] mesa: add struct for managing client debug namespaces
Marek Olšák
maraeo at gmail.com
Wed Feb 15 05:28:10 PST 2012
From: nobled <nobled at dreamwidth.org>
The final piece of the puzzle for GL_ARB_debug_output.
---
src/mesa/main/mtypes.h | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index be7e721..e79c809 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -3229,11 +3229,17 @@ typedef enum {
OTHER_ERROR_COUNT
} gl_other_error;
+struct gl_client_namespace
+{
+ struct _mesa_HashTable *IDs;
+ unsigned ZeroID; /* a HashTable won't take zero, so store its state here */
+ struct simple_node Severity[3]; /* lists of IDs in the hash table */
+};
+
struct gl_client_debug
{
GLboolean Defaults[3][2][6]; /* severity, source, type */
- /* TODO: Add an object here that can track the state of an arbitrary
- number of client-provided IDs. */
+ struct gl_client_namespace Namespaces[2][6]; /* source, type */
};
struct gl_debug_state
--
1.7.5.4
More information about the mesa-dev
mailing list