OSDN Git Service

The TLS dispatch functions for x86-64 are fixed-size, just like on
authorIan Romanick <idr@us.ibm.com>
Tue, 22 Aug 2006 18:22:20 +0000 (18:22 +0000)
committerIan Romanick <idr@us.ibm.com>
Tue, 22 Aug 2006 18:22:20 +0000 (18:22 +0000)
commitd319edff1e34696ac165bb553d085e8f2e3df4e3
treeff6c1bedf8ff4b806afd5eeba72551ceb406f9a6
parent4e4b5f40081cb3e4cefe4dce30712d8d330c0774
The TLS dispatch functions for x86-64 are fixed-size, just like on
x86.  This means that the position of each dispatch function can be
calculated as (dispatch_offset * size_of_function) + glNewList.  This
allows us to not store the function pointers in glprocs_table_t.

This same optimization has been done for quite some time on x86.  We
could probably also do this for some cases of the SPARC dispatch as
well.
src/mesa/glapi/glapi.c