Find a file
Brian Nguyen 48cbe20f60 [GLdispatch] First pass at implementing the GLdispatch API
Introduce two lists for tracking dynamic dispatch stubs: newProcList and
extProcList. newProcList contains stubs which were generated by a
getProcAddress call but not assigned a prototype from a vendor, and
extProcList contains stubs which have been assigned a prototype but may
still need the vendor's implementation to be plugged into the dispatch
tables.

Also introduce a generation number which is an attribute of both
dispatch stubs and dispatch tables, and a global variable,
latestGeneration. Each time __glDispatchGetProcAddress() generates a new
dispatch stub, latestGeneration is incremented and assigned to the new
dispatch stub. Dispatch tables with a generation number less than
latestGeneration need to be fixed up with functions from the extProcList
whose generation number is greater than the dispatch table's number.
After the fixup is complete, the dispatch table's generation is updated
to latestGeneration.

This also requires we track current dispatch tables globally; this will
be done in a subsequent change.

Link against glapi to get the required symbols we need.
2013-08-26 11:03:42 -07:00
include Add mesa headers from git commit fa7829c36b78b8ecc42238cbc0a02d1059320c77 2013-08-26 11:03:42 -07:00
m4 Add autotools infrastructure for libglvnd 2013-08-26 10:29:08 -07:00
src [GLdispatch] First pass at implementing the GLdispatch API 2013-08-26 11:03:42 -07:00
.gitignore Initial commit 2013-08-12 13:11:45 -07:00
autogen.sh Add autotools infrastructure for libglvnd 2013-08-26 10:29:08 -07:00
configure.ac [GLdispatch] Build mapi 2013-08-26 11:03:42 -07:00
dbg_configure.sh Add autotools infrastructure for libglvnd 2013-08-26 10:29:08 -07:00
Makefile.am Add autotools infrastructure for libglvnd 2013-08-26 10:29:08 -07:00