<p dir="ltr"><br>
On Jan 13, 2015 6:38 PM, "Kenneth Graunke" <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>> wrote:<br>
><br>
> On Tuesday, January 13, 2015 10:28:20 AM Jason Ekstrand wrote:<br>
> > Going through the for loop every time has noticable overhead.  This fixes<br>
> > things up so we only do that once ever and then just do a hash table lookup<br>
> > which should be much cheaper.<br>
> > ---<br>
> >  src/mesa/main/formats.c | 67 +++++++++++++++++++++++++++++++++++++++++--------<br>
> >  1 file changed, 56 insertions(+), 11 deletions(-)<br>
><br>
> This will break Windows.</p>
<p dir="ltr">Why? We have a C++11-based  implementation of pthread_once.<br>
--Jason</p>