summaryrefslogtreecommitdiff
path: root/src/mesa/glapi/glX_proto_send.py
AgeCommit message (Collapse)Author
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-02-25Convert the static functions read_pixel_reply, read_reply,Ian Romanick
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.
2005-02-09Generate GLX protocol for pixel single commands.Ian Romanick
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-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-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-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-24Move all the code for generating "size" related functions to its ownIan Romanick
source file.
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-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-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-01Slightly tweak the format of the size prototypes.Ian Romanick
2004-12-01Python script to generate various bits of client-side GLX protocol code.Ian Romanick