summaryrefslogtreecommitdiffstats
path: root/src/glx/x11/indirect.h
Commit message (Collapse)AuthorAgeFilesLines
* ARB_fbo: Add missing GLX render opcode for glFramebufferTextureLayerEXTIan Romanick2009-11-171-0/+1
| | | | Also regenerate the GLX protocol files from this change.
* ARB_fbo: Regenerate files from previous commits.Ian Romanick2009-11-171-0/+2
|
* regenerate glapiRoland Scheidegger2009-03-121-0/+2
|
* revert the DRI2 commitsAlan Hourihane2008-06-121-2/+0
|
* Bring in DRI2 changesAlan Hourihane2008-06-111-0/+2
|
* Regenerated API dispatch filesBrian Paul2008-05-181-6/+0
| | | | Follow on to cherry-pick from master
* s/params/pointer/ for glGetVertexAttribPointerBrian2007-01-301-1/+1
|
* Fix bug #4681.Ian Romanick2006-10-111-6/+17
| | | | | | | | | | | | | | | | | 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 a couple of the missing GL 2.0 functions. Enable GLX protocol forIan Romanick2006-08-251-0/+1
| | | | | glBlendEquationSeparateEXT. Add missing enum "get" information for GL_EXT_texture_filter_anisotropic.
* GL_EXT_paletted_texture functions should alias GL_SGI_color_table functions.Ian Romanick2006-08-241-0/+3
| | | | | | | | | | The functions for GL_EXT_paletted_texture that do not share GLX protocol with GL_ARB_imaging are supposed to alias the similar functions from GL_SGI_color_table. They didn't. This patch corrects this problem and enables GLX protocol for both extensions. Since this removes 3 entries from the dispatch table, this change creates a lot of changes in the generated files.
* Add a new offset mode to the GL API XML. This mode, called "assign,"Ian Romanick2006-08-241-136/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tells the scripts to assign an available offset to the function. The important changes are in src/mesa/glapi/gl_XML.py and src/mesa/glapi/*.xml. Since the DRI drivers only depend on functions required by the ABI (e.g., GL 1.2 + ARB_multitexture) having fixed offsets, all functions not in the ABI use "assign" mode. This has caused the offset of basically every function outside the ABI to change. I have verified that a libGL with this patch works with a DRI driver without the patch. Futher, several function were removed from the dispatch tables altogether. These are the functions for the following extensions: GL_SGIS_texture_filter4 GL_SGIS_texture4D GL_SGIS_detail_texture GL_SGIS_sharpen_texture GL_SGIX_sprite GL_SGIX_instruments GL_SGIX_framezoom GL_SGIX_tag_sample_buffer GL_SGIX_reference_plane GL_SGIX_flush_raster GL_SGIX_list_priority GL_SGIX_fragment_lighting GL_PGI_misc_hints GL_EXT_index_material GL_EXT_index_func GL_3DFX_tbuffer This removes 50 functions from the dispatch table.
* restore FASTCALL stuffBrian Paul2005-10-201-1/+5
|
* Disable the FASTCALL optimization because it still breaks server-side GLX.Brian Paul2005-10-201-5/+1
|
* /dri/msgAdam Jackson2005-08-261-2/+2
|
* Fix non-x86 specific builds. The changes from glTexImage3DEXT toIan Romanick2005-06-241-6/+6
| | | | | | | | | | | | | | | glTexImage3D that caused me so many problems during the re-development of the API scripts reared its ugly head again. This has been fixed by tracking the parameter string for each entry-point individually. This has the annoying side-effect that the names of the parameters in all aliases of a function must be the same or gl_apitemp.py will generate bad code. :( The changes in src/mesa/glapi/{gl_API.xml,glapitable.h} and src/glx/x11/* are caused by fixing the parameter names in various function aliases that didn't match. Reported by: Eric Anholt, Jacob Jansen
* Mammoth update to the Python code generator scripts that live inIan Romanick2005-06-211-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix the handling of zero-sized output parameters (i.e., those with typeIan Romanick2005-03-171-0/+1
| | | | | | | | 'GLvoid *'). This fixes the GLX protocol for glGetProgramStringARB. This fixes bugzilla #2747. Remove the 'ignore="true"' from glVertexAttrib4bvARB. This fixes bugzilla #2746.
* Add support for ARB_draw_buffers and ARB_occlusion_query. The GLX protocolIan Romanick2005-03-111-0/+9
| | | | | | | | | | | for these extensions (as well as ARB_vertex_program and ARB_matrix_palette) was just approved by the ARB on 8-Mar-2005. Now the only extension missing for 1.5 support is ARB_vertex_buffer_object. The opcodes for ARB_matrix_palette were also added to gl_API.xml. Since this extension isn't supported by Mesa, no code is generated for it. Some tabs were also converted to spaces in the comment for GetCompressedTexImageARB.
* Add GLX protocol support for ARB_fragement_program,Ian Romanick2005-02-251-0/+126
| | | | | | | ARB_fragment_program_shadow, ARB_vertex_program, NV_fragment_program, NV_fragment_program_option, NV_fragment_program2, NV_vertex_program, NV_vertex_program1_1, NV_vertex_program2, NV_vertex_program2_option, NV_vertex_program3, and ATI_text_fragment_shader.
* Convert the static functions read_pixel_reply, read_reply,Ian Romanick2005-02-251-0/+29
| | | | | | | setup_single_request, and setup_vendor_request to the global functions __glXReadPixelReply, __glXReadReply, __glXSetupSingleRequest, and __glXSetupVendorRequest. This will make it easier to add handcoded Single / VendorPrivate / VendorPrivteWithReply functions.
* Fix some mixed spaces / tabs issues in generated code. Commit generatedIan Romanick2005-02-051-0/+1
| | | | files that have been trivially changed by other recent commits.
* Refactor the code to emit multiple-inclusion protection toIan Romanick2005-01-281-4/+3
| | | | | | | | | FilterGLAPISpecBase. Since the size_h mode of glX_proto_size.py will be used to generate multiple header files, add an option to specify the define that is used for multiple-inclusion protection. The changes to the header files in this commit are just a side-effect of the changes to the Python scripts.
* Use GLX protocol code generated by glX_proto_send.py.Ian Romanick2004-12-201-658/+516
|
* Make the transition to script-genereated GLX code easier.Ian Romanick2004-12-011-1/+3
| | | | Convert GL 1.4 function names to EXT_blend_func_separate names.
* Make the transition to script-genereated GLX code easier.Ian Romanick2004-12-011-2/+7
| | | | | Convert GL 1.4 / ARB_point_parameter function names to EXT_point_parameter / NV_point_sprite names.
* Make the transition to script-genereated GLX code easier.Ian Romanick2004-12-011-15/+15
| | | | | Move "handcoded" ARB_window_pos / MESA_window_pos functions to their own file. Modify the ARB_window_pos functions to use the MESA_window_pos names.
* Make the transition to script-genereated GLX code easier.Ian Romanick2004-12-011-4/+5
| | | | | | | Move "handcoded" ARB_transpose_matrix functions to their own file. From here on out, such handcoded functions should go in a file named indirect_FOO.c, where "FOO" is some logical name for the functionality (e.g., part of the extension name, etc.).
* Make the transition to script-genereated GLX code easier.Ian Romanick2004-12-011-2/+15
| | | | | Move EXT_vertex_array wrapper functions from indirect_init.c to vertarr.c. Fix problems with EXT_multi_draw_arrays function names.
* Make the transition to script-genereated GLX code easier.Ian Romanick2004-12-011-13/+12
| | | | | | Eliminate the need for indirect_wrap.h and NEED_GL_FUNCS_WRAPPED. Basically, this means prepending __indirect_ to all the definitions and calls of GL functions that don't already have it.
* Make the transition to script-genereated GLX code easier.Ian Romanick2004-12-011-7/+7
| | | | | Convert GL_ARB_texture_compression related functions to use the extension version of the names instead of the GL 1.3 versions.
* Import the GLX client side library, formerly from xc/lib/GL/glx. Build itAdam Jackson2004-10-251-0/+647
by adding 'glx/x11' to SRC_DIRS in your build config.