summaryrefslogtreecommitdiff
path: root/src/mesa/glapi/gl_API.xml
AgeCommit message (Collapse)Author
2005-06-24Fix non-x86 specific builds. The changes from glTexImage3DEXT toIan Romanick
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
2005-06-22Mark GenQueriesARB at 'always_array="true"'. This eliminates the needIan Romanick
to special-case the handling of that function in glX_proto_send.py.
2005-06-21Mammoth update to the Python code generator scripts that live inIan Romanick
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
2005-05-26Minor correction to EXT_framebuffer_object XML. Fix gl_table.py so that itIan Romanick
generates the correct script name in the generated output.
2005-05-26Make a couple minor corrections to gl_API.xml. Fixes the name of anIan Romanick
extension that was missing the GL_ part and uses the core GL type names for vertex buffer object functions instead of the ARB names. Also commits the resulting changes to the generated code. Some how, the #if sequence disappeared in the 1.52 version of glapi_x86.S.
2005-04-18Move the DTD to its own file.Ian Romanick
2005-04-14Convert 'variable_param' from a CDATA attribute to a NMTOKENS attribute.Ian Romanick
The main difference is that white-space is used to separate the names instead of comas.
2005-04-14Modify the DTD to use NMTOKEN, enumerants, and explicit default valuesIan Romanick
wherever possible. Correct a couple mis-uses of the 'counter' attribute when 'count' was intended. Fix some errors in the DTD and in the data with 'doubles_in_order'.
2005-03-17xmllint fixes. Revert 'note_unflushed' changes that were accidetnallyIan Romanick
committed in the last version.
2005-03-17Enable the generation of server-side __glGetBooleanv_size and relatedIan Romanick
functions. There are two parts to this. First, a size element with a name "Get" is shorthand for having four separate size elements with names "GetIntegerv", "GetDoublev", "GetFloatv", and "GetBooleanv". Additionally, a count of "?" is treated specially. This causes a call to a handcoded function named "__gl<base name>_variable_size". This is *only* needed to support GL_COMPRESSED_TEXTURE_FORMATS. That enum can return a variable number of values depending how many compressed texture formats are supported by the implementation. Fix a problem with glGetProgram{Local,Env}Parameter[df]vARB, glAreProgramsResidentNV, and glGetVertexAttribivNV. These changes only affect code generated for the server-side. The changes to enum.c are caused by enums added for the server-side __glGetBooleanv_size functions.
2005-03-17Fix the handling of zero-sized output parameters (i.e., those with typeIan Romanick
'GLvoid *'). This fixes the GLX protocol for glGetProgramStringARB. This fixes bugzilla #2747. Remove the 'ignore="true"' from glVertexAttrib4bvARB. This fixes bugzilla #2746.
2005-03-11Add support for ARB_draw_buffers and ARB_occlusion_query. The GLX protocolIan Romanick
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.
2005-03-03Fix some errors in the parameter descriptions in serveral vertex / fragmentIan Romanick
program related functions.
2005-02-25Add GLX protocol support for ARB_fragement_program,Ian Romanick
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.
2005-02-23Corrected the value for X_GLrop_SecondaryColor3svEXT.Ian Romanick
2005-02-09Generate GLX protocol for pixel single commands.Ian Romanick
2005-02-08Correct a couple problems / omissions in the DTD.Ian Romanick
2005-02-08Add new entrypoints for GL_EXT_framebuffer_object.Brian Paul
2005-02-04Enable client-side GLX support for texture compression extensions.Ian Romanick
2005-02-03Added a bunch of extensions that were previously supported but weren'tIan Romanick
in the gl_API.xml database. Add "official" support for SGI_color_matrix and SGI_texture_color_table. These were previously supported only by way of ARB_imaging.
2005-01-28Properly annotate variable-length output parameters. Make sure that theIan Romanick
client-side code doesn't try to calculate the size of the output parameters. The server will tell the client how big it is.
2005-01-28Fix some get / set errors with COLOR_TABLE_*. SCALE and BIAS can beIan Romanick
parameters to GetColorTableParameter[if]v. FORMAT, WIDTH, and the SIZE enums cannot be parameters to ColorTableParameter[if]v.
2005-01-28Slightly modify the meaning of the 'handcode' attribute in a 'glx' element.Ian Romanick
The attribute can now take one of 4 states. "false" (the default value) means that no handcoding is required for the function. "client" means that the function must be handcoded on the client-side only. "server" means that the function must be handcoded on the server-side only. "true" menas that the function must be handcoded on both the client-side and the server-side. Version 1.14 of glX_proto_send.py accidentally contained a line of this change.
2005-01-27Mark a couple more function parameters as counters.Ian Romanick
2005-01-27Add numerous 'get'-type functions to most of the enums supported by theIan Romanick
server-side GLX implementation. Correct the protocol for EXT_convolution. Several functions were incorrectly listed as 'sop' that should have been 'vendorpriv'. Remove TexParameter[if]v from the list of functions associated with TEXTURE_RESIDENT. The state associated with this enum is read-only. Sort the enums by value for each particular size. This ensures that the signature is the same no matter what the ordering is of the enums in the XML file. The side effect is that there are some extra changes in indirect_size.c.
2005-01-25Stupid text editor...convert wayward tabs to spaces.Ian Romanick
2005-01-25Add a "count" attribute to "enums" elements to set the default countIan Romanick
used for "size" sub-elements. In the future the "count" attribute may be removed completely from "size" sub-elements, so gl_API.xml was also updated. Support was added for a (currently unused) "mode" attribute for "size" elements. Basically, functions are marked as either "get" or "set". This will be used in generating size functions for the server-side (where the "get" functions have to know how much data to return). It could also be used to help generate code for src/mesa/main/get.c.
2005-01-12Some initial work for OpenGL 2.0: glStencilFunc/Op/MaskSeparate() functions.Brian Paul
2005-01-07Track the GLX protocol names for GL types.Ian Romanick
2005-01-07Pixel oriented render functions are now generated by theIan Romanick
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.
2004-12-20No GLX protocol for GL_ATI_fragment_shader.Ian Romanick
2004-12-19Implement software ATI_fragment_shaderDave Airlie
no error detection, slow, may not be 100% correct but a good start
2004-12-13Added many (hopefully all) missing 'output="true"' attributes. AddedIan Romanick
missing enum information for GL_EXT_cull_vertex and GL_SGIS_texture_color_mask. Added GL_SUN_mesh_array. Corrected the spelling of the "length" parameter to GetActiveUniformARB.
2004-12-02Updated the schema. Added comments explaining some of the non-obviousIan Romanick
attributes. Modified a couple handcode functions to use the count_scale attribute instead.
2004-12-01Corrected a problem with the sizes of the MAP[12]_* enums.Ian Romanick
2004-12-01Added a couple missing always_array annotations and a couple trivalIan Romanick
enum-only extensions.
2004-12-01Added enums for GL_OES_read_format.Ian Romanick
2004-11-30PrioritizeTextures, GetClipPlane, and WindowPos3fMESA don't need to beIan Romanick
handcoded, but Enable and Disable do. Corrected some minor problems in the PixelMap functions and some ARB_vertex_program functions. Added size data for the enums that can be passed to the Map[12][fd] functions. Added the enums for EXT_pixel_buffer_objects.
2004-11-27Change the dispatch offsets for the VertexAttrib*NV functions so they don'tBrian Paul
alias with the corresponding ARB functions. GL_ARB_vertex_shader (and OpenGL 2.0's) VertexAttrib functions don't alias with conventional vertex attributes, as GL_NV_vertex_program does. So, the ARB and NV version of VertexAttrib need to be distinct.
2004-11-24Added support for several additional enum-only extensions:Ian Romanick
ARB_texture_rectangle, EXT_texture_env_dot3, EXT_texture_mirror_clamp, ATI_texture_mirror_once, IBM_texture_mirrored_repeat, NV_packed_depth_stencil, and NV_texture_rectangle.
2004-11-24Added information about numerous enums to aid the development of automaticIan Romanick
code generation for GLX protocol. This includes adding support for several additional enum-only extensions: EXT_filter_anisotropic, NV_expand_normal NV_fog_distance, NV_texture_env_combine4, SGIS_generate_mipmap, SGIX_clipmap, SGIX_depth_texture, SGIX_fog_offset, SGIX_shadow, SGIX_shadow_ambient, SGIX_texture_coordinate_clamp, SGIX_texture_lod_bias, and SGIX_texture_scale_bias.
2004-11-23Set the "ignore" flag for any functions that the open-source libGL doesn'tIan Romanick
already support GLX protocol for.
2004-10-28name parameter to glGetActiveAttribARB() should not be const.Brian Paul
Added shaderobjects.c to sources file.
2004-10-28renumber ARB_shader_objects and ARB_vertex_shader offsetsMichal Krol
to get BlendEquation have offset 710 fix param name lack with GetInfoLogARB
2004-10-27assign api offsets for ARB_shader_objects and ARB_vertex_shaderMichal Krol
2004-10-02added support for GL_ARB_draw_buffersBrian Paul
2004-08-25return type for MapBuffer was not specifiedBrian Paul
2004-05-21s/sop/rop/ in a couple places to fix some bugs. Added some parameterIan Romanick
information to several functions.
2004-05-20Added all of the missing ARB extensions. Added all the enums andIan Romanick
types for all core versions and ARB extensions. Converted all tabs to spaces.
2004-05-19Re-ordered categories. Added extension number information.Ian Romanick