diff options
author | Chia-I Wu <[email protected]> | 2014-04-24 11:17:32 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2014-04-27 10:06:21 +0800 |
commit | 7b2dd89041f458e90e65c4bf1edb9ff9580cbaee (patch) | |
tree | 83c29a2ce8b4b400e8d256706ef1626ae8f02301 /docs/relnotes | |
parent | 70e43370145d58f389627b11d075d8f6dbcf6ae3 (diff) |
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 <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'docs/relnotes')
0 files changed, 0 insertions, 0 deletions