summaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi/glapi_getproc.c
Commit message (Collapse)AuthorAgeFilesLines
* glapi: Move to src/mapi/.Chia-I Wu2010-05-071-695/+0
| | | | Move glapi to src/mapi/{glapi,es1api,es2api}.
* Revert "glapi: s/strcpy/strncpy/"Brian Paul2010-05-031-2/+1
| | | | | | | This reverts commit 9446fd8f69564e09ffd0f28735a99c510f84bb62. It doesn't make sense to replace strcpy(a,b) with strncpy(a,b,strlen(b)). The preceeding code effectively does bounds checking, btw.
* glapi: s/strcpy/strncpy/Vinson Lee2010-05-011-1/+2
|
* glapi: exec_malloc for dispatch stubsGeorge Sapountzis2010-03-141-6/+0
|
* glapi: fix bug with tls and relocsGeorge Sapountzis2010-03-101-0/+3
| | | | | | 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.
* glapi: these two should be ok for add_dispatch ...George Sapountzis2010-03-101-1/+5
| | | | | | - a function cannot be both static and extension, right ? - we should be setting the offset only if not already set, right ?
* glapi: comments for _glapi_add_dispatchGeorge Sapountzis2010-03-101-6/+18
|
* glapi: minor cosmetic for _glapi_add_dispatchGeorge Sapountzis2010-03-101-10/+11
|
* glapi: add function set_entry_infoGeorge Sapountzis2010-03-101-3/+22
|
* glapi: parameter checking, failure paths, ... for add_function_nameGeorge Sapountzis2010-03-101-12/+26
|
* glapi: cosmetic for _glapi_add_dispatchGeorge Sapountzis2010-03-101-25/+32
| | | | | | | - static vs. extension - indent - s/new_offset/static_offset/ - ...
* glapi: use get_extension_proc in _glapi_add_dispatchGeorge Sapountzis2010-03-101-12/+8
|
* glapi: cosmetic for functions for static tableGeorge Sapountzis2010-03-101-26/+33
| | | | make similar to functions for extensions table
* glapi: add function to find extension by nameGeorge Sapountzis2010-03-101-10/+21
|
* glapi: functions for extensions table similar to static tableGeorge Sapountzis2010-03-101-19/+50
|
* glapi: allow for any mangle prefixGeorge Sapountzis2010-03-091-2/+3
|
* glapi: split out arch-specific code for entrypointsGeorge Sapountzis2010-03-091-295/+2
|
* glapi: mv table functions to glapi_getproc.c and add local headerGeorge Sapountzis2010-03-091-2/+54
|
* drop stray XFree86Server, XGLServerGeorge Sapountzis2010-03-091-4/+4
|
* glapi: fix compile with ESGeorge Sapountzis2010-03-021-0/+4
|
* glapi.c: mv init_glapi_relocs to glapi_getproc.cGeorge Sapountzis2010-03-011-23/+192
|
* glapi.c: mv check_table to glapi_getproc.cGeorge Sapountzis2010-03-011-0/+67
|
* glapi: minor ugliness to be able to copy to xorgGeorge Sapountzis2010-02-251-2/+6
|
* Merge branch 'master' into opengl-es-v2Chia-I Wu2010-01-121-1/+1
|\ | | | | | | | | Conflicts: src/mesa/main/dd.h
| * Export a few glapi functions used by gallium and r300Kristian Høgsberg2010-01-031-1/+1
| | | | | | | | Fixes breakage from -fvisibility-hidden commit.
* | glapi: Include headers with directory prefixes.Chia-I Wu2009-11-051-4/+4
|/ | | | | | This allows different sets of generated sources and headers to be used. Signed-off-by: Chia-I Wu <[email protected]>
* mesa: update/fix doxygen commentsVinson Lee2009-03-171-1/+1
|
* mesa: Resurrect SPARC asm code.David S. Miller2009-02-261-56/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <[email protected]>
* mesa: move a bunch of compiler-related stuff into new compiler.h headerBrian Paul2009-02-221-0/+1
| | | | This trims down and cleans up imports.h and glheader.h quite a bit.
* glapi: update find_entry() for mangled namesBrian Paul2009-02-211-1/+7
|
* mesa: fix main/ prefix in includeKeith Whitwell2008-09-231-1/+1
|
* mesa: add fwd decl of fill_in_entrypoint_offset()Brian Paul2008-09-231-0/+4
| | | | (cherry picked from commit b1eff0228b7199920c02e62446ebf5496c298814)
* mesa: refactor: move GetProcAddress code from glapi.c into new ↵Brian Paul2008-09-231-0/+615
glapi_getproc.c file