summaryrefslogtreecommitdiff
path: root/src/mesa/glapi/glapi_getproc.c
AgeCommit message (Collapse)Author
2010-03-14glapi: exec_malloc for dispatch stubsGeorge Sapountzis
2010-03-10glapi: fix bug with tls and relocsGeorge Sapountzis
add_dispatch (driver) and maybe get_proc_address (client) may be called before set_dispatch is called, which results in generate_entrypoint using an unreloced function template.
2010-03-10glapi: these two should be ok for add_dispatch ...George Sapountzis
- a function cannot be both static and extension, right ? - we should be setting the offset only if not already set, right ?
2010-03-10glapi: comments for _glapi_add_dispatchGeorge Sapountzis
2010-03-10glapi: minor cosmetic for _glapi_add_dispatchGeorge Sapountzis
2010-03-10glapi: add function set_entry_infoGeorge Sapountzis
2010-03-10glapi: parameter checking, failure paths, ... for add_function_nameGeorge Sapountzis
2010-03-10glapi: cosmetic for _glapi_add_dispatchGeorge Sapountzis
- static vs. extension - indent - s/new_offset/static_offset/ - ...
2010-03-10glapi: use get_extension_proc in _glapi_add_dispatchGeorge Sapountzis
2010-03-10glapi: cosmetic for functions for static tableGeorge Sapountzis
make similar to functions for extensions table
2010-03-10glapi: add function to find extension by nameGeorge Sapountzis
2010-03-10glapi: functions for extensions table similar to static tableGeorge Sapountzis
2010-03-09glapi: allow for any mangle prefixGeorge Sapountzis
2010-03-09glapi: split out arch-specific code for entrypointsGeorge Sapountzis
2010-03-09glapi: mv table functions to glapi_getproc.c and add local headerGeorge Sapountzis
2010-03-09drop stray XFree86Server, XGLServerGeorge Sapountzis
2010-03-02glapi: fix compile with ESGeorge Sapountzis
2010-03-01glapi.c: mv init_glapi_relocs to glapi_getproc.cGeorge Sapountzis
2010-03-01glapi.c: mv check_table to glapi_getproc.cGeorge Sapountzis
2010-02-25glapi: minor ugliness to be able to copy to xorgGeorge Sapountzis
2010-01-12Merge branch 'master' into opengl-es-v2Chia-I Wu
Conflicts: src/mesa/main/dd.h
2010-01-03Export a few glapi functions used by gallium and r300Kristian Høgsberg
Fixes breakage from -fvisibility-hidden commit.
2009-11-05glapi: Include headers with directory prefixes.Chia-I Wu
This allows different sets of generated sources and headers to be used. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-03-17mesa: update/fix doxygen commentsVinson Lee
2009-02-26mesa: Resurrect SPARC asm code.David S. Miller
This rewrites the sparc GLAPI code so that it's PIC friendly and works with all of the TLS/PTHREADS/64-bit/32-bit combinations properly. As a result we can turn SPARC asm back on. Currently it's only enabled on Linux, as that's the only place where I can test this stuff out. For the moment the cliptest SPARC asm routines are disabled as they are non-working. The problem is that they use register %g7 as a temporary which is where the threading libraries store the thread pointer on SPARC. I will fix that code up in a future change as it's a pretty important routine to optimize. Like x86 we do the runtime patch as a pthread once-invoked initializer in init_glapi_relocs(). Unlike x86, however, our GLAPI stubs on SPARC are just two instruction sequences that branch to a trampoline and put the GLAPI offset into a register. The trampoline is what we run-time patch. The stubs thus all look like: glFoo: ba __glapi_sparc_foo_stub sethi GLAPI_OFFSET(glFOO) * PTR_SIZE, %g3 This actually makes generate_entrypoint() a lot simpler on SPARC. For this case in generate_entrypoint() we generate stubs using a 'call' instead of the 'ba' above to make sure it can reach. In order to get a proper tail call going here, in the unpatched case, we do several tricks. To get the current PC, for example, we save the return address register into a temporary, do a call, save the return address register written by the call to another temporary, then restore the original return address register value. This is to avoid having to allocate a stack frame. This is necessary for PIC address formation. This new GLAPI scheme lets us get rid of the ugly SPARC GLAPI hacks in __glXInitialize() and one_time_init(). Signed-off-by: David S. Miller <davem@davemloft.net>
2009-02-22mesa: move a bunch of compiler-related stuff into new compiler.h headerBrian Paul
This trims down and cleans up imports.h and glheader.h quite a bit.
2009-02-21glapi: update find_entry() for mangled namesBrian Paul
2008-09-23mesa: fix main/ prefix in includeKeith Whitwell
2008-09-23mesa: add fwd decl of fill_in_entrypoint_offset()Brian Paul
(cherry picked from commit b1eff0228b7199920c02e62446ebf5496c298814)
2008-09-23mesa: refactor: move GetProcAddress code from glapi.c into new ↵Brian Paul
glapi_getproc.c file