summaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi
Commit message (Collapse)AuthorAgeFilesLines
* GLX: Include glapi.h before glapitable.hIan Romanick2008-12-141-1/+1
| | | | | | A previous commit (2dbc515a669be123a019aeb4aa5aae6b1679f6a9) change some of the interdependencies between these two header files. Now glapi.h must be included before glapitable.h.
* Return 0 as the request size when the pixels parameter is NULLNeil Roberts2008-12-141-0/+5
| | | | | | | | img_null_flag was being ignored when calculating the size of a request so a BadLength error gets thrown for glTexImage3D when the pixels parameter is NULL. See bug #11003
* GLX: Fix protocol for glTexSubImage#DIan Romanick2008-12-148-6/+39
| | | | | | | | | | | | | | | | | | | | | | | | | The TexSubImage commands do not have the "NULL image" flag that was introduced with glTexImage3D. However, there is a CARD32 pad element where that flag would be. Removing the img_null_flag causes the flag to be removed from the protocol. This changes the protocol and breaks everything. In order to prevent needing to hand-code all of the TexSubImage functions, a new attribute was added to the param element. This new attribute, called "padding," is a boolean flag that selects whether or not the parameter is a real parameter (default / false) or is protocol padding (true) that does not appear in the function's parameter list. This change resulted in a number of changes to other Python scripts. In almost all cases parameters with the is_padding flag set should not be emitted. This patch only changes the the XML, the DTD, and the generator scripts. It does NOT include the resulting changes to the generated code. Generated code in the X server is also changed by the script / XML changes in this patch. Signed-off-by: Ian Romanick <[email protected]>
* mesa: restore glapi/ prefix on #includeBrian Paul2008-11-101-1/+1
|
* mesa: fix some misc breakage caused by editing auto-generated files rather ↵Brian Paul2008-11-103-5/+13
| | | | | | | | than the python generators Specifically: #include "glapitable.h" in src/mesa/main/glapi/dispatch.h Call _mesa_bsearch() in src/mesa/main/enums.c.
* GLX: fix out-of-bounds memory issue in indirect glAreTexturesResident()Brian Paul2008-11-102-5/+2
| | | | | | | | | | | | | | | | See bug 18445. When getting array results, __glXReadReply() always reads a multiple of four bytes. This can cause writing to invalid memory when 'n' is not a multiple of four. Special-case the glAreTexturesResident() functions now. To fix the bug, we use a temporary buffer that's a multiple of four bytes in length. NOTE: this commit also reverts part of commit 919ec22ecf72aa163e1b97d8c7381002131ed32c (glx/x11: Added some #ifdef GLX_DIRECT_RENDERING protection) which directly edited the indirect.c file rather than the python generator! I'm not repairing that issue at this time.
* mesa: asst updates for VMSJouk Jansen2008-09-291-4/+6
|
* glapi: add DISPATCH_FUNCTION_SIZETobias Jakobi2008-09-271-0/+14
|
* glapi: add gl_dispatch_functions_start and endTobias Jakobi2008-09-271-0/+10
|
* mesa: fix main/ prefix in includeKeith Whitwell2008-09-231-1/+1
|
* mesa: add fwd decl of fill_in_entrypoint_offset()Brian Paul2008-09-231-0/+4
| | | | (cherry picked from commit b1eff0228b7199920c02e62446ebf5496c298814)
* mesa: refactor: move GetProcAddress code from glapi.c into new ↵Brian Paul2008-09-233-624/+655
| | | | glapi_getproc.c file
* mesa: move some glapi bits aroundBrian Paul2008-09-214-3/+7
| | | | | | Move _glapi_proc typedef from glapitable.h to glapi.h Also, don't include glapitable.h from glapi.h Before we were including the huge glapitable.h file in every .c file.
* Remove CVS keywords.Keith Whitwell2008-09-211-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cherry-picked from gallium-0.1 Conflicts: src/glu/sgi/libnurbs/interface/bezierEval.h src/glu/sgi/libnurbs/interface/bezierPatch.h src/glu/sgi/libnurbs/interface/bezierPatchMesh.h src/glu/sgi/libnurbs/internals/dataTransform.h src/glu/sgi/libnurbs/internals/displaymode.h src/glu/sgi/libnurbs/internals/sorter.h src/glu/sgi/libnurbs/nurbtess/definitions.h src/glu/sgi/libnurbs/nurbtess/directedLine.h src/glu/sgi/libnurbs/nurbtess/gridWrap.h src/glu/sgi/libnurbs/nurbtess/monoChain.h src/glu/sgi/libnurbs/nurbtess/monoPolyPart.h src/glu/sgi/libnurbs/nurbtess/monoTriangulation.h src/glu/sgi/libnurbs/nurbtess/partitionX.h src/glu/sgi/libnurbs/nurbtess/partitionY.h src/glu/sgi/libnurbs/nurbtess/polyDBG.h src/glu/sgi/libnurbs/nurbtess/polyUtil.h src/glu/sgi/libnurbs/nurbtess/primitiveStream.h src/glu/sgi/libnurbs/nurbtess/quicksort.h src/glu/sgi/libnurbs/nurbtess/rectBlock.h src/glu/sgi/libnurbs/nurbtess/sampleComp.h src/glu/sgi/libnurbs/nurbtess/sampleCompBot.h src/glu/sgi/libnurbs/nurbtess/sampleCompRight.h src/glu/sgi/libnurbs/nurbtess/sampleCompTop.h src/glu/sgi/libnurbs/nurbtess/sampleMonoPoly.h src/glu/sgi/libnurbs/nurbtess/sampledLine.h src/glu/sgi/libnurbs/nurbtess/searchTree.h src/glu/sgi/libnurbs/nurbtess/zlassert.h src/glu/sgi/libutil/error.c src/glu/sgi/libutil/glue.c src/glu/sgi/libutil/gluint.h src/glu/sgi/libutil/project.c src/glu/sgi/libutil/registry.c src/glx/x11/glxclient.h src/glx/x11/glxext.c src/mesa/drivers/dri/ffb/ffb_dd.h src/mesa/drivers/dri/ffb/ffb_points.h src/mesa/drivers/dri/gamma/gamma_context.h src/mesa/drivers/dri/gamma/gamma_macros.h src/mesa/drivers/dri/i810/i810context.h src/mesa/drivers/dri/r128/r128_dd.h src/mesa/drivers/dri/tdfx/tdfx_dd.h
* mesa: fix asst path/include mistakes in prev commitsChris Rankin2008-09-181-1/+1
|
* mesa: prefix a bunch of #include lines with "main/".Brian Paul2008-09-181-1/+1
| | | | | This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
* mesa: #include <stdio.h>Guillaume Melquiond2008-09-131-0/+1
|
* mesa: return -1, not GL_FALSE if _glapi_add_dispatch() fails name sanity checkBrian Paul2008-07-091-2/+2
|
* Bring over commit 8d4d0b47a07a298a20ffae9fefe96c8c7ca9dccc from xserver treePaulo Cesar Pereira de Andrade2008-07-021-0/+3
|
* VBO: Add missing functions related to VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARBIan Romanick2008-07-011-0/+2
|
* VBO: add GLX related annotationsIan Romanick2008-07-011-29/+59
|
* Follow along GL/glx -> glx renaming in xserverDan Nicholson2008-05-211-2/+2
| | | | | The xserver glx modules were lifted up to the top level, so this changes the glapi generation to look in the new location.
* Add remaining glapi generated server headers.Kristian Høgsberg2008-05-211-12/+35
| | | | | | | | This adds all the headers needed by the xserver glx module and also adds a rule to copy over the shared glapi.[ch] and glthread.[ch] files. Specifying an xserver path (set XORG_BASE on the make command line) is now mandatory when regenerating the glapi files.
* Make the shared glapi files not include glheader.h.Kristian Høgsberg2008-05-213-6/+15
|
* Revert "glapi: Generate xserver glapi sources in the mesa tree"Kristian Høgsberg2008-05-211-13/+18
| | | | | | | | | This reverts commit 7688791fc52f116eea421fda1d17aba5cf10977b, and takes us back to generating the glapi files straight into the xserver tree. Conflicts: src/glx/x11/indirect_size_get.c
* Never fail `make clean'Dan Nicholson2008-05-071-2/+2
| | | | | | Mostly some pedantic changes such that `make clean' always ignores errors. Also changed the top clean target to do the `touch configs/current' dance instead of realclean.
* glcore: drop outdated sources files intented for xorgGeorge Sapountzis2008-04-231-12/+0
|
* glcore: build from mesaGeorge Sapountzis2008-04-232-0/+8
|
* Move DRI context functions into dri_glx.c.Kristian Høgsberg2008-03-081-1/+1
| | | | Also drop isDirect flag; if gc->driContext is non-NULL, it's direct.
* Added <size name="Get" mode="get"/> lines for point parameter tokens.Brian2008-02-191-0/+4
| | | | | See bug 11893. This allows GL_POINT_SIZE_MIN/MAX/etc to be queried with indirect rendering.
* If parameter is a 'counter', raise GL_INVALID_VALUE if value is negativeBrian2008-02-191-0/+8
| | | | Fixes bug 10984.
* glapi: Generate xserver glapi sources in the mesa treeDan Nicholson2008-02-171-18/+13
| | | | | | | | | Instead of generating the glapi sources for the xserver and commiting them to the xserver tree, we can keep them in the mesa tree and change the xserver build to use the files from the mesa tree. This makes the xserver glx build more robust as it reduces the chances for mismatches of the glX API used in the xserver vs. in mesa.
* glapi: Correct prerequisites for gl_and_glX_API.xmlDan Nicholson2008-02-121-2/+2
| | | | | | | The indirect_dispatch.h and indirect_table.c source files use gl_and_glX_API.xml in their generation rather than glX_API.xml, but it wasn't listed in their prerequisites. In turn, gl_and_glX_API.xml uses glX_API.xml, but this is already listed in $(COMMON_GLX).
* glapi: Use make automatic variables to clean up the commandsDan Nicholson2008-02-121-46/+50
| | | | | | | Make use of the make automatic variables $@ (the target) and $< (first prerequisite) to clean up the commands for the glapi generation. This improves readability and guards against typos since words are repeated less frequently.
* glapi: Use variable for indent and flagsDan Nicholson2008-02-121-9/+7
| | | | | | Put the path to indent and the flags to call it with in configs/default rather than in the Makefile. This makes it easier to change the values globally.
* added 'get' info for framebuffer object tokensBrian2008-01-012-8/+18
|
* add 'Get' info for MAX_3D_TEXTURE_SIZE (for bug 13811)Brian2008-01-011-1/+3
|
* recreate from changed gl_API.xmlRoland Scheidegger2007-11-095-630/+590
|
* alias ProgramEnvParameter4xyARB and ProgramParameter4xyNV (bug #12935)Roland Scheidegger2007-11-091-8/+6
| | | | these should be the same functions (as per spec).
* Prevent loss of vectorequiv information when an alias follows the function ↵Ian Romanick2007-11-081-43/+48
| | | | being aliased.
* Fix some build warnings, mostly with XCB.Michel Dänzer2007-10-301-5/+9
|
* Alias glStencilOpSeparateATI with glStencilOpSeparate.Brian2007-10-306-143/+130
|
* Finish up ATI_separate_stencilBrian2007-10-306-300/+373
| | | | | | Add entrypoints to glapi XML file and regenerate files. Implement glStencilOpSeparateATI(). Consolidate some code in stencil.c
* typoGeorge Sapountzis2007-10-141-1/+1
|
* Uncomment GLX_SGIX_pbuffer definition.Kristian Høgsberg2007-10-131-3/+1
|
* Add a few missing GL 2.0 entrypoints, regenerate related files.Brian2007-06-283-137/+196
| | | | | | | | | Specifically: glVertexAttrib4bv glVertexAttrib4iv glVertexAttrib4ubv glVertexAttrib4uiv glVertexAttrib4usv
* Fix TEXREL issues when using GLX_USE_TLS (see bug 7459).Brian2007-06-122-12/+23
|
* Initial implementation of MESA_texture_arrayIan Romanick2007-05-166-300/+356
| | | | | Shadow sampling from texture arrays is still not implemented. Everything else should be there, though.
* fix bug 9823: GL_CLIENT_ATTRIB_STACK_DEPTH query fails for indirect renderingWei Wang2007-04-081-2/+6
|
* MAX_TEXTURE_COORDS_ARB and MAX_TEXTURE_IMAGE_UNITS_ARB had wrong glGet info.Brian2007-04-071-2/+2
| | | | Fixes bug 10371.