diff options
author | Jason Ekstrand <[email protected]> | 2015-01-12 14:43:34 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-22 10:35:43 -0800 |
commit | e24d17e08cb19bbecadb22ed43b25eeec26cde27 (patch) | |
tree | ca18a9a1129abe5f59169837d4ebc82e7cff7767 /src/mesa/drivers | |
parent | 333226522cd9ae541147b52e20f577aa19c50426 (diff) |
formats: Use a hash table for _mesa_format_from_array_format
Going through the for loop every time has noticable overhead. This fixes
things up so we only do that once ever and then just do a hash table lookup
which should be much cheaper.
v2 Jason Ekstrand <[email protected]>:
- Use once_flag and call_once from c11/threads.h instead of pthreads
Reviewed-by: Neil Roberts <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
0 files changed, 0 insertions, 0 deletions