summaryrefslogtreecommitdiffstats
path: root/src/glx/x11/indirect.c
Commit message (Collapse)AuthorAgeFilesLines
* Regenerated API dispatch filesBrian Paul2008-05-181-114/+0
| | | | Follow on to cherry-pick from master
* regeneratedBrian2007-01-301-25/+25
|
* Update gl_API.xml with OpenGL 2.0 functions, regenerate derived files.Brian Paul2006-11-021-1/+1
|
* include glapi.h to fix broken buildBrian Paul2006-10-131-0/+1
|
* Fix bug #4681.Ian Romanick2006-10-111-134/+468
| | | | | | | | | | | | | | | | | 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
* Updates for XCB. Bug 8560.Brian Paul2006-10-091-1/+1
|
* Changes to generated code caused by the previous commits.Ian Romanick2006-10-041-3022/+4577
|
* Update to use the new XCB naming convention.Jeremy Kolb2006-09-261-171/+171
|
* Fix problems with vertex program protocolIan Romanick2006-08-311-48/+48
| | | | | | | | | | | There were two sets of bugs in the vertex program (ARB and NV) protocol. First, several of the ARB functions were missing the 'doubles_in_order="true"' annotation. Second, after the ARB decided that glVertexAttrib*ARB functions must not alias fixed-function state for GLSL, Nvidia re-assigned GLX protocol opcodes for glVertexAttrib*NV (circa Septeber 2004). For some reason gl_API.xml was never updated to reflect this, and the updated version of the GL_NV_vertex_program spec never made into the registry.
* Add a couple of the missing GL 2.0 functions. Enable GLX protocol forIan Romanick2006-08-251-0/+13
| | | | | 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/+55
| | | | | | | | | | 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-1246/+1246
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Set always_array=true for glGenProgramsNV (Dave Reveman)Brian Paul2006-03-141-1/+1
|
* 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-1/+1
|
* Fix non-x86 specific builds. The changes from glTexImage3DEXT toIan Romanick2005-06-241-10/+10
| | | | | | | | | | | | | | | 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
* Fixed the XCB implementation when always_array is true, thanks to Ian ↵Jeremy Kolb2005-06-241-4/+4
| | | | Romanick for pointing it out. Please review.
* Mark GenQueriesARB at 'always_array="true"'. This eliminates the needIan Romanick2005-06-221-2/+2
| | | | to special-case the handling of that function in glX_proto_send.py.
* Fixed a bug where GenQueriesARB was generating the wrong code for XCB and ↵Jeremy Kolb2005-06-221-3/+0
| | | | wouldn't compile. Not sure how that slipped through before but it should work now.
* Mammoth update to the Python code generator scripts that live inIan Romanick2005-06-211-99/+364
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* ran "make" after update to glX_proto_send.py.Jeremy Kolb2005-06-201-68/+68
|
* Commit the changes propagated from Jeremy Kolb's changes to the PythonIan Romanick2005-05-251-0/+486
| | | | scripts in src/mesa/glapi.
* Fix the handling of zero-sized output parameters (i.e., those with typeIan Romanick2005-03-171-1/+14
| | | | | | | | '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/+154
| | | | | | | | | | | 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.
* Actually *use* the count_scale value associated with a parameter.Ian Romanick2005-03-061-24/+24
|
* Fix some errors in the parameter descriptions in serveral vertex / fragmentIan Romanick2005-03-031-67/+89
| | | | program related functions.
* Accidentally committed wrong version with the previous commit set.Ian Romanick2005-02-251-31/+31
|
* Add GLX protocol support for ARB_fragement_program,Ian Romanick2005-02-251-0/+1698
| | | | | | | 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-98/+98
| | | | | | | 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.
* Corrected the value for X_GLrop_SecondaryColor3svEXT.Ian Romanick2005-02-231-2/+2
|
* Generate GLX protocol for pixel single commands.Ian Romanick2005-02-091-0/+191
|
* Fix some mixed spaces / tabs issues in generated code. Commit generatedIan Romanick2005-02-051-13/+13
| | | | files that have been trivially changed by other recent commits.
* Mark a couple more function parameters as counters.Ian Romanick2005-01-271-3/+3
|
* Pixel oriented render functions are now generated by theIan Romanick2005-01-071-2/+515
| | | | | | glX_proto_send.py script. This eliminates ~600 lines of non-generated code. With proper compiler optimization settings, it also decreases the size of libGL.so by about 3KB.
* The generic_*_byte functions did not rount the command size to aIan Romanick2005-01-071-4/+4
| | | | multiple of 4 correctly in some cases.
* The opcode and command length fields of RenderLarge commands wereIan Romanick2005-01-031-8/+8
| | | | mistakenly emitted in the wrong order.
* Fixed two problems with the handling of GLX protocol replies. The logicIan Romanick2004-12-271-2/+2
| | | | | | for determining when extra data needed to be read after a reply (to ensure 4-byte alignment) and the logic to determine whether or not to read reply data after the SingleReply packet were both slightly wrong.
* Used GCC's __builtin_expect when available. Change the way code isIan Romanick2004-12-211-1049/+486
| | | | | generated for commands that can use RenderLarge packets. Tweak the code for __glXFlushRenderBuffer slightly.
* Use GLX protocol code generated by glX_proto_send.py.Ian Romanick2004-12-201-0/+5696