diff options
author | nobled <[email protected]> | 2011-05-04 14:40:35 +0000 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-03-10 21:42:06 +0100 |
commit | 41308d969921d28a3159099420c145d2dcf10fe6 (patch) | |
tree | 56fde11a6f1d03f22192c64ebc886f0cc51be63a /src | |
parent | f6f309394036ff5228f6351435a5eff202ef0008 (diff) |
mesa: add struct for managing client debug namespaces
The final piece of the puzzle for GL_ARB_debug_output.
Diffstat (limited to 'src')
-rw-r--r-- | 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 35dc30bd2d7..9b88f993879 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -3221,11 +3221,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 |