Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util: include c99_compat.h in hash_table.h to get 'inline' definition | Brian Paul | 2014-08-04 | 1 | -0/+1 |
| | | | | Reviewed-by: Jason Ekstrand <[email protected]> | ||||
* | util: Gather some common macros | Jason Ekstrand | 2014-08-04 | 1 | -2/+2 |
| | | | | | | | | | | This gathers macros that have been included across components into util so that the include chain can be more vertical. In particular, this makes util stand on its own without any dependence whatsoever on the rest of mesa. Signed-off-by: "Jason Ekstrand" <[email protected]> Reviewed-by: Marek Olšák <[email protected]> | ||||
* | util: Move the open-addressing linear-probing hash_table to src/util. | Kenneth Graunke | 2014-08-04 | 1 | -0/+106 |
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 <[email protected]> v2 (Jason Ekstrand): Pick up another hash_table use and patch up scons Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Marek Olšák <[email protected]> |