summaryrefslogtreecommitdiffstats
path: root/src/mapi
Commit message (Collapse)AuthorAgeFilesLines
* mapi: add missing newline in error messageBrian Paul2010-12-311-1/+1
|
* mapi: Move mapi_func typedef to entry.h.Chia-I Wu2010-12-244-4/+4
| | | | Make it clear that entry.h does not depend on stub.h.
* mapi: Define MAPI_TMP_DEFINES only when needed.Chia-I Wu2010-12-242-1/+1
| | | | | Since struct mapi_table is opaque, MAPI_TMP_DEFINES is not needed in table.h.
* mapi: Add and use entry_get_public.Chia-I Wu2010-12-247-16/+66
| | | | | | | | | | | Given a dispatch slot, entry_get_public returns the address of the corresponding public entry point. There may be more than one of them. But since they are all equivalent, it is fine to return any one of them. With entry_get_public, the address of any public entry point can be calculated at runtime when an assembly dispatcher is used. There is no need to have a mapping table in such case. This omits the unnecessary relocations from the binary.
* mapi: Make struct mapi_stub opaque.Chia-I Wu2010-12-244-15/+61
| | | | Add accessors for struct mapi_stub and make it opaque.
* mapi: Allow blocks to be disabled from the output.Chia-I Wu2010-12-241-47/+58
| | | | For example, a printer may ask not to output noop dispatch table.
* mapi: Fix hidden entries.Chia-I Wu2010-12-241-16/+55
| | | | | | | Hidden entries are just like normal entries except that they are not exported. Since it is not always possible to hide them, and two hidden aliases can share the same entry, the name of hidden aliases are mangled to '_dispatch_stub_<slot>'.
* mapi: Add "handcode" attribute to the script.Chia-I Wu2010-12-241-0/+22
| | | | | Entries with handcode attribute will be handled normally, except no entry point will be generated for them.
* mapi: Minor ABIPrinter refactoring.Chia-I Wu2010-12-241-21/+32
| | | | | | Split out function name generation from _c_decl to _c_function, and use it everywhere. Add an optional 'export' argument to _cdecl. It is prepended to the returned string.
* mapi: Store alias entry instead of alias name.Chia-I Wu2010-12-241-6/+8
| | | | An entry can hold more info than plain name.
* mapi: Remove unnecessary header.Vinson Lee2010-12-231-1/+0
|
* mapi: Clean up sources.mk.Chia-I Wu2010-12-186-27/+29
| | | | | | Rename MAPI_GLAPI_SOURCES to MAPI_UTIL_SOURCES. Rename macro MAPI_GLAPI_CURRENT to MAPI_MODE_UTIL. Update the comments to make it clear that mapi may be used in two ways and how.
* mapi: Clean up u_current interface.Chia-I Wu2010-12-189-56/+104
| | | | | Try not to use macros to make u_current.h appear to be glapi.h. Use u_current.h to implement glapi.h instead whenever possible.
* mapi: Add ABI-tag note.Chia-I Wu2010-12-182-0/+26
| | | | TLS requires kernel >= 2.4.20. Per glapi.
* mapi: Fix a warning in !THREADS build.Chia-I Wu2010-12-121-1/+1
| | | | It should be u_thread_self, not _glthread_GetID.
* mapi: Rewrite mapi_abi.py to get rid of preprocessor magic.Chia-I Wu2010-12-068-374/+326
| | | | | | | | The preprocessor magic in mapi was nothing but obfuscation. Rewrite mapi_abi.py to generate real C code. This commit removes the hack added in 43121f20866bb89e8dac92bd92ec85a943704b7e.
* mapi: Hack to avoid vgCreateFont being generated as vgCreateFontA.José Fonseca2010-12-021-0/+3
| | | | | Right fix is probably stop C-preprocessor abuse and stick 100% with scripted code generation.
* WIN32_THREADS -> WIN32José Fonseca2010-12-028-12/+11
| | | | | | | | | Fixes nasty bug where some parts of the code didn't define WIN32_THREADS and were using the integer mutex implementation, causing even confusion to the debuggers. And there is little interest of other thread implemenation on Win32 besides Win32 threads.
* st/vega: Update to latest headers.Chia-I Wu2010-12-011-12/+12
|
* drivers/x11: unifdef XFree86ServerAdam Jackson2010-11-291-12/+1
| | | | | | | This code was for the old GLcore build of the software rasteriser. The X server switched to a DRI driver for software indirect GLX long ago. Signed-off-by: Adam Jackson <[email protected]>
* mesa: hook up GL 3.x entrypointsBrian Paul2010-11-2112-4694/+5702
| | | | Fix up some details in the xml files and regenerate dispatch files.
* glapi: rename GL3.xml to GL3x.xml as it covers all GL 3.x versionsBrian Paul2010-11-211-0/+0
|
* mesa: upgrade to glext.h version 66Brian Paul2010-11-173-6/+6
| | | | | The type of the num/count parameter to glProgramParameters4[df]vNV() changed so some API dispatch code needed updates too.
* scons: Revamp how to specify targets to build.José Fonseca2010-11-012-71/+73
| | | | | | | | | | | | | | | | | | | | | | Use scons target and dependency system instead of ad-hoc options. Now is simply a matter of naming what to build. For example: scons libgl-xlib scons libgl-gdi scons graw-progs scons llvmpipe and so on. And there is also the possibility of scepcified subdirs, e.g. scons src/gallium/drivers If nothing is specified then everything will be build. There might be some rough corners over the next days. Please bare with me.
* Merge branch 'glapi-reorg'Chia-I Wu2010-10-2914-9177/+3249
|\ | | | | | | | | | | | | | | | | Conflicts: src/mapi/glapi/glapi_sparc.S src/mapi/glapi/glapi_x86.S src/mapi/glapi/glapidispatch.h src/mapi/glapi/glapioffsets.h src/mapi/glapi/glprocs.h
| * glapi: Merge glapioffsets.h into glapidispath.h.Chia-I Wu2010-10-274-1330/+22
| | | | | | | | | | | | | | | | | | Move defines in glapioffsets.h to glapidispatch.h. Rename _gloffset_FIRST_DYNAMIC to _gloffset_COUNT, which is equal to the number of entries in _glapi_table. Consistently use SET_by_offset, GET_by_offset, CALL_by_offset, and _gloffset_* to recursively define all SET/GET/CALL macros.
| * glapi: Do not use glapioffsets.h.Chia-I Wu2010-10-278-3117/+3105
| | | | | | | | | | | | | | glapioffsets.h exists for the same reason as glapidispatch.h does. It is of no use to glapi. This commit also drops the use of glapioffsets.h in glx as glx is considered an extension to glapi when it comes to defining public GL entries.
| * glapi: Move glapidispatch.h to core mesa.Chia-I Wu2010-10-273-4279/+6
| | | | | | | | It is a core mesa header, not a glapi header.
| * glapi: Do not use glapidispatch.h.Chia-I Wu2010-10-272-7/+5
| | | | | | | | | | | | | | | | | | glapidispatch.h exists so that core mesa (libmesa.a) can be built for DRI drivers or for non-DRI drivers as a compile time decision (whether IN_DRI_DRIVER is defined). It is of no use to glapi. This commit also drops the use of glapidispatch.h in glx and libgl-xlib as they are considered extensions to glapi when it comes to defining public GL entries.
* | glapi: regenerated API filesBrian Paul2010-10-288-716/+2710
| |
* | glapi: include EXT_gpu_shader4.xmlBrian Paul2010-10-282-0/+3
| |
* | glapi: xml spec file for GL_EXT_gpu_shader4Brian Paul2010-10-281-0/+244
| |
* | glapi: Commit files changed by previous commitIan Romanick2010-10-278-433/+596
| |
* | glapi: Add GL_EXT_separate_shader_objectsIan Romanick2010-10-273-0/+30
|/
* mesa: regenerated API files for GL_EXT_texture_integerBrian Paul2010-10-238-585/+943
|
* glapi: include/build EXT_texture_integer.xmlBrian Paul2010-10-232-0/+3
|
* glapi: GL_EXT_texture_integer APIBrian Paul2010-10-231-0/+98
|
* mesa: regenerated files with primitive restartBrian Paul2010-10-218-880/+978
|
* mesa: API spec for primitive restartBrian Paul2010-10-213-0/+26
|
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-3/+3
|
* mapi: Fix compiler warnings.Chia-I Wu2010-09-303-3/+3
| | | | Do not use "void *" in arithmetics.
* Regenerate files changed by previous commitIan Romanick2010-09-279-2523/+2395
|
* glapi: Fix ES build errors again.Chia-I Wu2010-09-151-2/+2
| | | | | | | This fixes an error in GLAPI ES. My build is ok with or without this patch, and the error affects others' setups. [Patch from Francesco Marella]
* glapi: Fix build errors for ES.Chia-I Wu2010-09-151-1/+1
| | | | | | | The latest glext.h defines GL_FIXED. Test GL_OES_fixed_point instead to decide whether to define GLfixed and GLclampx. This fixes fdo bug #30205.
* mesa: update to version 64 of GL/glext.hBrian Paul2010-09-145-9/+9
| | | | | | A number of other files had to be updated as well because const qualifiers were added to the glMultiDrawArrays() function. Also, GL_FIXED is now defined in glext.h.
* Revert "glapi: Implement optional dispatch logging"Kristian Høgsberg2010-09-092-71/+17
| | | | | | This reverts commit b9abc6139a310677a37754ea7172d976dbf56979 and the follow on fixes (7aae704 and 6fe1b47). It's changing the glapi/driver ABI and causes a number of problems for debug/non-debug builds.
* glapi: Fix non-debug buildsJakob Bornecrantz2010-09-091-1/+1
|
* glapi: Implement optional dispatch loggingKristian Høgsberg2010-09-092-17/+71
| | | | | | | There's a useful feature buried in glapi to log all API calls to stderr. Unfortunately it requires editing the code and then it's enabled unconditionally for that build. This patch builds in API logging for debug builds and makes it run-time switchable by setting MESA_DEBUG=dispatch.
* glapi: fix generator which got out of sync with the codebaseLuca Barbieri2010-08-301-3/+3
| | | | | The __GLapi typedef was removed in c356f5867f2c1fad7155df538b9affa8dbdcf869, but the code generator hasn't been updated.
* glapi: Clean up header inclusions.Chia-I Wu2010-08-236-40/+45
| | | | | Do not rely on PUBLIC being defined in glapi.h. Do not include core mesa headers.