summaryrefslogtreecommitdiff
path: root/src/mesa/glapi
AgeCommit message (Collapse)Author
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-08Definitions for EXT_framebuffer_object. Just <include/> it in gl_API.xmlIan Romanick
when ready.
2005-02-08Add the ability to include other XML files by using aIan Romanick
<include name="file"/> element as a sub-element of <OpenGLAPI>.
2005-02-05Fix some mixed spaces / tabs issues in generated code. Commit generatedIan Romanick
files that have been trivially changed by other recent commits.
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-02-02Small refactor. Add glXFunctionIterator, which derrives fromIan Romanick
glFunctionIterator and is used by GlxProto. The difference between the two iterator classes is that glXFunctionIterator skips functions that the GLX protocol code does not care about. Replace all the remaining occurances of glParameter::p_count_parameters and glFunction::count_parameters with the count_parameter_list. Add GlxProto::size_call to generate the C code to calculate 'compsize'. These trivially modify the generated code.
2005-02-01Small refactor. Move several utility functions from glX_XML.py toIan Romanick
FilterGLAPISpecBase (in gl_XML.py). When these functions are used to emit common #define lines, the will automatically be undefined in FilterGLAPISpecBase::printFooter if header_tag is set (i.e., the file is a header file). These changes do not modify the generated code.
2005-02-01Add GlxProto::createEnumFunction and add a 'context' parameter to theIan Romanick
glXEnumFunction constructor. The allows sub-classes of GlxProto to over-ride the concrete class used for glXEnumFunction. In addition to tracking p_count_parameters in glParameter, break the comma separated list of parameter names into a Python list called count_parameter_list. It is now possible to query if a name is the name of one of the count parameters just by comparing param.count_parameter_list.count(n) to zero. Eventually the remaining uses of p_count_parameters will be replaced with uses of count_parameter_list. Make sure that 'void *' parameters are handled correctly in glParameter::size_string. Add PrintGlxReqSize_h and PrintGlxReqSize_c. These classes emit prototypes and functions used on the server-side to determine the expected size of an incoming GL command.
2005-01-28Refactor the code to emit multiple-inclusion protection toIan Romanick
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.
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-28Add an option to emit extra debug code in the generated protocol functions.Ian Romanick
The debug version of indirect.c has proven very helpful during the development of new client-side and server-side GLX protocol code. This is put here instead of in the DISPATCH and DISPATCH_RETURN macros in dispatch.c for two reasons. 1. I only want the debug information when indirect-rendering is used. 2. Functions that require a reply from the server, some of which do not have a return value (e.g., glFlush, glFinish, glGetLightfv, etc.), do not need the extra glFinish call.
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-27The 'mode' setting of a function within an 'enum' element is now used.Ian Romanick
Parameters to glX_proto_size.py are now used to determine whether to emit either get-type function, set-type functions, or both. When only get-type functions are emitted, they can optionally alias set-type functions. This would be useful if, for example, the two types were in different source files. The real work to implement this is in SizeStubFunctionIterator class. All of the logic for which functions to iterate and in which order is implemented there.
2005-01-25Add a glFunctionIterator class to iterate over the functions stored in aIan Romanick
higher-level API object. Use this type of object to implement the printFunctions method. Modify other functions that iterate over the list of functions to use this type of object.
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-24Correctly set the name of the generating script.Ian Romanick
2005-01-24Move all the code for generating "size" related functions to its ownIan Romanick
source file.
2005-01-24Correct some of the dependencies and clean things up a bit.Ian Romanick
2005-01-24Remove glEnum::startElement, but refactor out some of the common code fromIan Romanick
there and glXEnum::startElement to glEnum::process_attributes.
2005-01-24Since only one of the places that used glXFunction::command_payload_lengthIan Romanick
actually used both values, it was refactored into command_fixed_length and command_variable_length. glXFunction::offset_of_first_parameter was also added.
2005-01-24Make sure that functions added to gl_API.xml that do not have any GLXIan Romanick
section are marked as ignored. Also ignore any functions that don't have assigned dispatch offsets. Fold Adam Jackson's changes to indirect_size.c into the generator scripts so that they don't get lost. "DO NOT EDIT" really means "DO NOT EDIT". ;)
2005-01-12Some initial work for OpenGL 2.0: glStencilFunc/Op/MaskSeparate() functions.Brian Paul
2005-01-07Use GNU AS label aliasing, if available. This must be enabled by addingIan Romanick
'-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.
2005-01-07Script to generate rough GLX protocol documentation (as might be seen inIan Romanick
an extension spec). It's not perfect, and it doesn't support certain functions that other scripts here can (e.g., pixel functions). However, it is a good start and has already proven useful to me.
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.
2005-01-07The generic_*_byte functions did not rount the command size to aIan Romanick
multiple of 4 correctly in some cases.
2005-01-03The opcode and command length fields of RenderLarge commands wereIan Romanick
mistakenly emitted in the wrong order.
2004-12-27Fixed two problems with the handling of GLX protocol replies. The logicIan Romanick
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.
2004-12-21Used GCC's __builtin_expect when available. Change the way code isIan Romanick
generated for commands that can use RenderLarge packets. Tweak the code for __glXFlushRenderBuffer slightly.
2004-12-21Added some comments and fixed typeos. Slightly refactored the wayIan Romanick
function parameters are iterated. There are no changes in the generated code.
2004-12-20Use GLX protocol code generated by glX_proto_send.py.Ian Romanick
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-15_glapi_* is effectively PUBLIC API for the DRI drivers.Adam Jackson
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-13Trivial shell script to search the API definition file and print out theIan Romanick
next numerically available API entry-point offset.
2004-12-08silence warningAlan Hourihane
2004-12-03Move common GLX code to glX_XML.py. This will make adding glX_proto_recv.pyIan Romanick
easier later on.
2004-12-03Fix a minor bug in glXEnumFunction::PrintUsingTable. Add some comments.Ian Romanick
Add the (currently unused) utility funciton glXFunction::opcode_real_value.
2004-12-03silence a variety of warnings found with g++ 3.4.2Brian Paul
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.