[Mesa-dev] [PATCH v3 05/10] formats: Use a hash table for _mesa_format_from_array_format
Kenneth Graunke
kenneth at whitecape.org
Tue Jan 13 18:38:27 PST 2015
On Tuesday, January 13, 2015 10:28:20 AM Jason Ekstrand wrote:
> 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.
> ---
> src/mesa/main/formats.c | 67 +++++++++++++++++++++++++++++++++++++++++--------
> 1 file changed, 56 insertions(+), 11 deletions(-)
This will break Windows.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150113/8572508d/attachment.sig>
More information about the mesa-dev
mailing list