aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi/gl_x86_asm.py
Commit message (Collapse)AuthorAgeFilesLines
* glapi: mv code generation to subdirGeorge Sapountzis2010-02-241-270/+0
| | | | This just moves files, code generation Makefile will be fixed in next commit for easier review.
* Merge branch 'mesa_7_7_branch'Brian Paul2010-01-251-1/+1
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/intel/intel_screen.c src/mesa/drivers/dri/intel/intel_swapbuffers.c src/mesa/drivers/dri/r300/r300_emit.c src/mesa/drivers/dri/r300/r300_ioctl.c src/mesa/drivers/dri/r300/r300_tex.c src/mesa/drivers/dri/r300/r300_texstate.c
| * glapi: Do not use .type pseudo-op on Mac OS X.Vinson Lee2010-01-231-1/+1
| | | | | | | | The .type directive is an unknown pseudo-op on Mac OS X.
* | glapi: Include headers with directory prefixes.Chia-I Wu2009-11-051-1/+1
|/ | | | | | This allows different sets of generated sources and headers to be used. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
* glapi: remove XTHREADS supportRALOVICH, Kristóf2009-07-271-1/+1
|
* GLX: Fix protocol for glTexSubImage#DIan Romanick2008-12-141-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | The TexSubImage commands do not have the "NULL image" flag that was introduced with glTexImage3D. However, there is a CARD32 pad element where that flag would be. Removing the img_null_flag causes the flag to be removed from the protocol. This changes the protocol and breaks everything. In order to prevent needing to hand-code all of the TexSubImage functions, a new attribute was added to the param element. This new attribute, called "padding," is a boolean flag that selects whether or not the parameter is a real parameter (default / false) or is protocol padding (true) that does not appear in the function's parameter list. This change resulted in a number of changes to other Python scripts. In almost all cases parameters with the is_padding flag set should not be emitted. This patch only changes the the XML, the DTD, and the generator scripts. It does NOT include the resulting changes to the generated code. Generated code in the X server is also changed by the script / XML changes in this patch. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
* mesa: fix asst path/include mistakes in prev commitsChris Rankin2008-09-181-1/+1
|
* Fix TEXREL issues when using GLX_USE_TLS (see bug 7459).Brian2007-06-121-3/+12
|
* #define _glapi_Dispatch _mglapi_Dispatch when USE_MGL_NAMESPACE is set.Brian Paul2006-11-031-4/+1
|
* check for USE_MGL_NAMESPACEBrian Paul2006-11-031-0/+4
|
* Fix bug #4681.Ian Romanick2006-10-111-5/+12
| | | | | | | | | | | | | | | | | glDeleteTextures and glDeleteTexturesEXT were erroneously listed as aliases of each other. For anything /except/ GLX protocol they are aliases. This set of changes allows functions that are functionally identical but have different GLX protocol to be listed as aliases. When building with GLX_INDIRECT_RENDERING set, different static functions are used. These functions determine whether the current context is direct rendering or not. If the context is direct rendering, the aliased function (e.g., glDeleteTextures in the case of glDeleteTexturesEXT) is called. If the context is not direct rendering, the correct GLX protocol is sent. For a deeper explanation of what is changed, please see: http://dri.freedesktop.org/wiki/PartiallyAliasedFunctions
* Add two new gl_function methods. dispatch_name returns the name ofIan Romanick2006-08-281-12/+3
| | | | | | | | | | | | | the true static dispatch name (either the glFooBar name or the gl_dispatch_stub_XXX name). static_name returns the name of the static function for a specific alias of a GL function. Adding (and using) these two functions corrects some problems in the generated code related to functions with multiple aliases where some of the aliases have true static dispatch functions and some don't. I have verified that everything under progs, except xdemos/xdemo, correctly link. I did this by doing 'make linux-dri-x86-64 PROGRAM_DIRS="demos redbook samples xdemos tests"'.
* Explicitly store the names for each function that should have a staticIan Romanick2006-08-261-4/+4
| | | | | | entry point generated. This allows us to do things like generate a static entry point for glPointParameterfvARB but not for glPointParameterfvSGIS.
* Add new attribute called static_dispatch to the <function> element. ThisIan Romanick2006-08-221-7/+22
| | | | | | | | | | | | | | | | | | | boolean attribute, which defaults to true, determines whether or not a static dispatch function is available in libGL for applications to link against. Ideally, any new functions that are not part of the ABI should not have directly accessable dispatch functions. This forces applications to use glXGetProcAddress to access these functions. By doing this we can gracefully remove functions from libGL without breaking the linkage of applications. Note that the static dispatch functions are still generated. However, they are given names like gl_dispatch_stub_820 and are marked with the "hidden" linker attribute. All extension functions added since the previous Mesa release (6.5) have been marked as 'static_dispatch="false"'.
* Add .note.GNU-stack section to assembler files to avoid the default behaviorKristian Høgsberg2006-04-171-0/+4
| | | | of requesting executable stacks.
* remove unneeded HIDDEN definition (bug 4956)Brian Paul2005-11-041-14/+0
|
* Remove _glapi_check_multithread from the interface exported by the loader toIan Romanick2005-08-101-2/+2
| | | | | | | | | | | | | | | | | the driver. The loader now takes care of this for the driver. Remove _glapi_DispatchTSD and give _glapi_Dispatch its semantic (i.e., having a NULL value means that the application is multithreaded and _glapi_get_dispatch must be called). Gut all of the dispatch override code. This removes _glapi_RealDispatch, _glapi_tls_RealDispatch, _glapi_begin_dispatch_override, _glapi_end_dispatch_override, and _glapi_get_override_dispatch. Remove _glapi_get_proc_address, _glapi_get_proc_name, _glapi_get_version, and _glapi_check_table from the loader / driver interface. Reviewed by: Brian Paul
* Convert all instances of XTHREADS to USE_XTHREADS. This fixes one ofIan Romanick2005-08-031-1/+1
| | | | | serveral things that are broken when building on a system with X.org 7.0rc0 installed.
* Mammoth update to the Python code generator scripts that live inIan Romanick2005-06-211-23/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/mesa/glapi. Basically, the scripts that did simple things (like gl_offsets.py) were simple, and the scripts that did more complicated things (like glX_proto_send.py) were getting progressively more and more out of control. So, I re-write the foundation classes on which everything is based. One problem with the existing code is that the division between the GL API database representation and the way the output code is generated was either blury or nonexistant. The new code somewhat follows the Model-View-Controller pattern, minus the Controller. There is a distinct set of classes that model the API data, and there is a distinct set of classes that generate code from that data. One big change is in the class that represents GL functions (was glFunction, is now gl_function). There used to be an instance of this calls for each function and for each alias to that function. For example, there was an instance for PointParameterivSGIS, PointParameterivEXT, PointParameterivARB, and PointParameteriv. In the new code, there is one instance. Each instance has a list of entrypoint names for the function. In the next revision, this will allow a couple useful things. The script will be able to verify that the parameters, return type, and GLX protocol for a function and all it's aliases match. It will also allow aliases to be represented in the XML more compactly. Instead of repeating all the information, an alias can be listed as: <function name="PointParameterivARB" alias="PointParameterivEXT"/> Because the data representation was changed, the order that the alias functions are processed by the scripts also changed. This accounts for at least 2,700 of the ~3,600 lines of diffs in the generated code. Most of the remaining ~900 lines of diffs are the result of bugs *fixed* by the new scripts. The old scripts also generated code with some bugs in it. These bugs were discovered while the new code was being written. These changes were discussed on the mesa3d-dev mailing list back at the end of May: http://marc.theaimsgroup.com/?t=111714569000004&r=1&w=2 Xorg bug: 3197, 3208
* Refactor a bunch of common code from the "leaf" scripts to a new functions,Ian Romanick2005-04-181-13/+1
| | | | parse_GL_API, in gl_XML.py.
* Convert all Python scripts to use XML namespaces.Ian Romanick2005-04-181-1/+1
|
* Add TLS support to libGL and, by virtue of using glthread.h and GL_CALL, allIan Romanick2005-04-131-8/+56
| | | | | | | DRI drivers. A TLS enabled libGL can load a TLS or a non-TLS DRI driver, but a TLS DRI driver requires a TLS enabled libGL. This fixes bug #1822.
* Use GNU AS label aliasing, if available. This must be enabled by addingIan Romanick2005-01-071-3/+17
| | | | | | '-DHAVE_ALIAS' to DEFINES in the config file used for building. On the linux-dri-x86 build, this cuts 4KB from libGL.so. HAVE_ALIAS is not currently enabled in any of the configs.
* Added some comments and fixed typeos. Slightly refactored the wayIan Romanick2004-12-211-1/+1
| | | | | function parameters are iterated. There are no changes in the generated code.
* Set symbol visibility to 'default', if supported by gcc.Brian Paul2004-11-271-0/+7
|
* Fix mgl name mangling (patch 1014800)Brian Paul2004-08-251-4/+10
|
* Fixed an assembler warning / error (depending on the version of GAS used).Ian Romanick2004-08-171-11/+3
| | | | Fixed a crash in the optimized pthreads dispatch path.
* put back the correct dispatcher for non-threaded builds.Daniel Borca2004-07-021-3/+3
| | | | fixed x86 entrypoints for Mingw/DJGPP.
* Make sure THREADS is set no matter which threading model is selected.Ian Romanick2004-07-011-0/+4
|
* First phase of TLS work. At this point SPARC assembly dispatch isIan Romanick2004-06-291-7/+56
| | | | | broken, but it will be fixed "shortly." This is pretty much the same as the patch I sent to the dri-devel list on 22-Jun-2004.
* New scripts for processing the XML version of APIspec. Mail is beingIan Romanick2004-05-181-0/+138
sent to mesa3d-dev with a more detailed description.