summaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi
Commit message (Collapse)AuthorAgeFilesLines
* glapi: Always build libglapi.a.Chia-I Wu2009-10-236-9/+22
| | | | | | | | This is made possible by making glapioffsets.h and glapidispatch.h internal headers of glapi. They should only be included indirectly through dispatch.h by mesa. Signed-off-by: Chia-I Wu <[email protected]>
* glapi: Move dispatch marcos to glapidispatch.h.Chia-I Wu2009-10-234-3983/+4014
| | | | | | dispatch.h is kept as a wrapper to glapidispatch.h. Signed-off-by: Chia-I Wu <[email protected]>
* mesa/dri: Remove extension_helper.h.Chia-I Wu2009-10-231-5/+0
| | | | Signed-off-by: Chia-I Wu <[email protected]>
* mesa/main: Add support for remap table.Chia-I Wu2009-10-232-0/+223
| | | | | | | This commit only adds the source files. It is supposed to replace the remap table in DRI drivers. Signed-off-by: Chia-I Wu <[email protected]>
* windows: replace old ColorTable, Convolution functions with newBrian Paul2009-09-191-4/+4
|
* glapi: replace old TexCopy functions w/ newBrian Paul2009-09-191-5/+5
|
* glapi: regenerated filesBrian Paul2009-09-192-0/+8
|
* glapi: added tokens, function for GL_ARB_provoking_vertexBrian Paul2009-09-191-0/+13
|
* glapi: Add ARB_draw_elements_base_vertexEric Anholt2009-09-087-1330/+1426
|
* mesa: Add support for ARB_depth_clamp.Eric Anholt2009-09-083-0/+15
| | | | | This currently doesn't include fixing up the cliptests in the assembly paths to support ARB_depth_clamp, so enabling depth_clamp forces the C path.
* glapi: fix incorrect/missing return types for glFenceSync(), glClientWaitSync()Brian Paul2009-09-034-8/+9
|
* Eliminate trailing whitespace in extension_helper.cIan Romanick2009-09-031-1/+1
|
* ARB sync: Regenerate files from previous commitIan Romanick2009-09-035-1354/+1480
|
* ARB sync: Add base infrastructure for GL_ARB_syncIan Romanick2009-09-033-0/+84
|
* Put 'extern' first on the line to silence GCC warnings.Ian Romanick2009-08-281-2/+2
|
* Revert "glapi: Fix a possible race in getting current context/dispatch."Brian Paul2009-08-253-41/+41
| | | | | | | This reverts commit 17090cf3efb0db8fa01b502a9c0df27cbd1a67da. We're reverting this because it causes ABI breakage with the X server. Maybe re-attempt with another patch.
* glapi: Fix a possible race in getting current context/dispatch.Chia-I Wu2009-08-243-41/+41
| | | | | | | | | | | | | | | | | | There is a possbile race that _glapi_Context is reset by another thread after it is tested in GET_CURRENT_CONTEXT but before it is returned. We definitely do not want a lock here to solve the race. To have correct results even under a race, no other threads should reset _glapi_Context (or _glapi_Dispatch). This patch adds a new global variable _glapi_SingleThreaded. Since _glapi_Context or _glapi_Dispatch are no longer reset, _glapi_SingleThreaded is tested instead, before accessing them. DRI drivers compiled with this patch applied will not work with existing libGL.so because of the missing new symbol. If this turns out to be a real problem, this patch should be reverted. Signed-off-by: Chia-I Wu <[email protected]>
* glapi: Static mutex does not work on WIN32_THREADS.Chia-I Wu2009-08-241-2/+11
| | | | | | | This re-introduces the race in _glapi_check_multithread, but avoids a crash on windows. Signed-off-by: Chia-I Wu <[email protected]>
* glapi: Fix a race in accessing context/dispatch TSD.Chia-I Wu2009-08-241-0/+4
| | | | | | | | | If multiple threads set/get a TSD at roughly same time for the first time, glthread might (wrongly) initialize it more than once. This patch solves the race by initializing context/dispatch TSDs early. Acked-by: Ian Romanick <[email protected]> Signed-off-by: Chia-I Wu <[email protected]>
* glapi: Protect _glapi_check_multithread by a mutex.Chia-I Wu2009-08-241-14/+15
| | | | | | | | | Multiple threads might call _glapi_check_multithread at roughly the same time. It is possbile that all of them are wrongly regarded as firstCall if there is no mutex. This bug causes xeglthreads to crash sometimes. Acked-by: Ian Romanick <[email protected]> Signed-off-by: Chia-I Wu <[email protected]>
* Infrastructure for GL_ARB_seamless_cube_mapIan Romanick2009-08-143-0/+15
|
* Regenerate files for GL_APPLE_flush_buffer_rangeIan Romanick2009-08-145-349/+437
|
* typo fixRobert Ellison2009-08-031-1/+1
| | | | somehow, this change was missed on the last checkin
* mesa: fix up some GLAPI XMLRobert Ellison2009-08-033-38/+100
| | | | | | | | | | - Added specifications for the extensions GL_APPLE_flush_buffer_range and GL_APPLE_texture_range - EXT_framebuffer_object.xml strangely held specifications for both the GL_EXT_framebuffer_object extension and the GL_EXT_texture_array extension. Split out the GL_EXT_texture_array data into its own file.
* glapi: remove XTHREADS supportRALOVICH, Kristóf2009-07-274-96/+3
|
* Merge branch 'mesa_7_5_branch'Jakob Bornecrantz2009-07-031-0/+23
|\ | | | | | | | | | | Conflicts: src/mesa/main/dlist.c src/mesa/vbo/vbo_save_api.c
| * glapi: ensure _mesa_lookup_prim_by_nr() is not clobbered on regenerationKeith Whitwell2009-07-021-0/+23
| | | | | | | | Propogate changes to enums.c back up to the python source.
* | mesa: regenerated files related to GL_ARB_vertex_array_objectBrian Paul2009-06-195-1292/+1344
| |
* | glapi: add new information for GL_ARB_vertex_array_objectBrian Paul2009-06-193-0/+37
| |
* | Merge branch 'ext-provoking-vertex'Brian Paul2009-06-198-336/+379
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: docs/relnotes-7.6.html progs/tests/Makefile src/gallium/drivers/softpipe/sp_prim_vbuf.c src/glx/x11/indirect.c src/mesa/glapi/Makefile src/mesa/glapi/dispatch.h src/mesa/glapi/glapioffsets.h src/mesa/glapi/glapitable.h src/mesa/glapi/glapitemp.h src/mesa/glapi/glprocs.h src/mesa/main/dlist.c src/mesa/main/enums.c src/mesa/sparc/glapi_sparc.S src/mesa/x86-64/glapi_x86-64.S src/mesa/x86/glapi_x86.S
| * | mesa: GL API changes for GL_EXT_provoking_vertexBrian Paul2009-05-287-336/+357
| |/ | | | | | | This creates the new glProvokingVertexEXT() entrypoint.
* | mesa: regenerated files for GL_ARB_map_buffer_rangeBrian Paul2009-06-085-1287/+1323
| |
* | glapi: hook in ARB_map_buffer_range.xmlBrian Paul2009-06-082-0/+3
| |
* | glapi: spec/xml file for GL_ARB_map_buffer_rangeBrian Paul2009-06-081-0/+34
| |
* | Fix compiling indirect.c when GLX_DIRECT_RENDERING is not definedIan Romanick2009-06-031-1/+5
| | | | | | | | | | DO NOT HAND-EDIT GLX PROTOCOL FILES. Seriously. How can you miss the giant comment at the top of the file?
* | glapi: regenerated files for GL_ARB_copy_bufferBrian Paul2009-06-025-1271/+1289
| |
* | glapi: include ARB_copy_buffer.xmlBrian Paul2009-06-022-0/+3
| |
* | glapi: GL_ARB_copy_buffer xml infoBrian Paul2009-06-021-0/+24
|/
* mesa: Correct the gl_dispatch_stub_xxx prototypes.José Fonseca2009-04-202-49/+47
|
* glapi: remove a couple accidental GL_ prefixesRoland Scheidegger2009-03-281-24/+24
|
* mesa: add new signed rgba texture formatRoland Scheidegger2009-03-281-0/+6
| | | | | This is a (partial) backport of the signed texture format support in OGL 3.1. Since it wasn't promoted from an existing extension roll our own.
* mesa: update/fix doxygen commentsVinson Lee2009-03-171-1/+1
|
* regenerate glapiRoland Scheidegger2009-03-125-569/+641
|
* mesa: add support for ATI_envmap_bumpmapRoland Scheidegger2009-03-121-0/+50
| | | | | | | | add new entrypoints, new texture format, etc translate in texenvprogram.c for drivers using the mesa-generated tex env fragment program also handled in swrast, but not tested (cannot work due to negative texel results not handled correctly)
* mesa: Resurrect SPARC asm code.David S. Miller2009-02-263-109/+328
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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]>
* Fix "cast to pointer from integer of different size"Tomas Carnecky2009-02-261-1/+1
| | | | | | | | | The script generates code like: pixels = (const GLvoid *) (ptr_is_null != 0) ? NULL : (pc + 80); which causes the above mentioned warning. Add parenthesis around the whole expression to fix it. Signed-off-by: Tomas Carnecky <[email protected]>
* mesa: fixes for building on HaikuTomas Wilhelmsson2009-02-231-0/+12
|
* mesa: Fix windows build.José Fonseca2009-02-231-3/+3
|
* mesa: move a bunch of compiler-related stuff into new compiler.h headerBrian Paul2009-02-224-3/+5
| | | | 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
|