summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-01-12 14:43:34 -0800
committerJason Ekstrand <[email protected]>2015-01-22 10:35:43 -0800
commite24d17e08cb19bbecadb22ed43b25eeec26cde27 (patch)
treeca18a9a1129abe5f59169837d4ebc82e7cff7767 /src/mesa/drivers
parent333226522cd9ae541147b52e20f577aa19c50426 (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