summaryrefslogtreecommitdiff
path: root/src/mesa/glapi
AgeCommit message (Collapse)AuthorFilesLines
2008-12-14GLX: Include glapi.h before glapitable.hIan Romanick1-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.
2008-12-14Return 0 as the request size when the pixels parameter is NULLNeil Roberts1-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
2008-12-14GLX: Fix protocol for glTexSubImage#DIan Romanick8-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 <ian.d.romanick@intel.com>
2008-11-10mesa: restore glapi/ prefix on #includeBrian Paul1-1/+1
2008-11-10mesa: fix some misc breakage caused by editing auto-generated files rather ↵Brian Paul3-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.
2008-11-10GLX: fix out-of-bounds memory issue in indirect glAreTexturesResident()Brian Paul2-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.
2008-09-29mesa: asst updates for VMSJouk Jansen1-4/+6
2008-09-27glapi: add DISPATCH_FUNCTION_SIZETobias Jakobi1-0/+14
2008-09-27glapi: add gl_dispatch_functions_start and endTobias Jakobi1-0/+10
2008-09-23mesa: fix main/ prefix in includeKeith Whitwell1-1/+1
2008-09-23mesa: add fwd decl of fill_in_entrypoint_offset()Brian Paul1-0/+4
(cherry picked from commit b1eff0228b7199920c02e62446ebf5496c298814)
2008-09-23mesa: refactor: move GetProcAddress code from glapi.c into new ↵Brian Paul3-624/+655
glapi_getproc.c file
2008-09-21mesa: move some glapi bits aroundBrian Paul4-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.
2008-09-21Remove CVS keywords.Keith Whitwell1-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
2008-09-18mesa: fix asst path/include mistakes in prev commitsChris Rankin1-1/+1
2008-09-18mesa: prefix a bunch of #include lines with "main/".Brian Paul1-1/+1
This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
2008-09-13mesa: #include <stdio.h>Guillaume Melquiond1-0/+1
2008-07-09mesa: return -1, not GL_FALSE if _glapi_add_dispatch() fails name sanity checkBrian Paul1-2/+2
2008-07-02Bring over commit 8d4d0b47a07a298a20ffae9fefe96c8c7ca9dccc from xserver treePaulo Cesar Pereira de Andrade1-0/+3
2008-07-01VBO: Add missing functions related to VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARBIan Romanick1-0/+2
2008-07-01VBO: add GLX related annotationsIan Romanick1-29/+59
2008-05-21Follow along GL/glx -> glx renaming in xserverDan Nicholson1-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.
2008-05-21Add remaining glapi generated server headers.Kristian Høgsberg1-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.
2008-05-21Make the shared glapi files not include glheader.h.Kristian Høgsberg3-6/+15
2008-05-21Revert "glapi: Generate xserver glapi sources in the mesa tree"Kristian Høgsberg1-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
2008-05-07Never fail `make clean'Dan Nicholson1-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.
2008-04-23glcore: drop outdated sources files intented for xorgGeorge Sapountzis1-12/+0
2008-04-23glcore: build from mesaGeorge Sapountzis2-0/+8
2008-03-08Move DRI context functions into dri_glx.c.Kristian Høgsberg1-1/+1
Also drop isDirect flag; if gc->driContext is non-NULL, it's direct.
2008-02-19Added <size name="Get" mode="get"/> lines for point parameter tokens.Brian1-0/+4
See bug 11893. This allows GL_POINT_SIZE_MIN/MAX/etc to be queried with indirect rendering.
2008-02-19If parameter is a 'counter', raise GL_INVALID_VALUE if value is negativeBrian1-0/+8
Fixes bug 10984.
2008-02-17glapi: Generate xserver glapi sources in the mesa treeDan Nicholson1-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.
2008-02-12glapi: Correct prerequisites for gl_and_glX_API.xmlDan Nicholson1-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).
2008-02-12glapi: Use make automatic variables to clean up the commandsDan Nicholson1-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.
2008-02-12glapi: Use variable for indent and flagsDan Nicholson1-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.
2008-01-01added 'get' info for framebuffer object tokensBrian2-8/+18
2008-01-01add 'Get' info for MAX_3D_TEXTURE_SIZE (for bug 13811)Brian1-1/+3
2007-11-09recreate from changed gl_API.xmlRoland Scheidegger5-630/+590
2007-11-09alias ProgramEnvParameter4xyARB and ProgramParameter4xyNV (bug #12935)Roland Scheidegger1-8/+6
these should be the same functions (as per spec).
2007-11-08Prevent loss of vectorequiv information when an alias follows the function ↵Ian Romanick1-43/+48
being aliased.
2007-10-30Fix some build warnings, mostly with XCB.Michel Dänzer1-5/+9
2007-10-30Alias glStencilOpSeparateATI with glStencilOpSeparate.Brian6-143/+130
2007-10-30Finish up ATI_separate_stencilBrian6-300/+373
Add entrypoints to glapi XML file and regenerate files. Implement glStencilOpSeparateATI(). Consolidate some code in stencil.c
2007-10-14typoGeorge Sapountzis1-1/+1
2007-10-13Uncomment GLX_SGIX_pbuffer definition.Kristian Høgsberg1-3/+1
2007-06-28Add a few missing GL 2.0 entrypoints, regenerate related files.Brian3-137/+196
Specifically: glVertexAttrib4bv glVertexAttrib4iv glVertexAttrib4ubv glVertexAttrib4uiv glVertexAttrib4usv
2007-06-12Fix TEXREL issues when using GLX_USE_TLS (see bug 7459).Brian2-12/+23
2007-05-16Initial implementation of MESA_texture_arrayIan Romanick6-300/+356
Shadow sampling from texture arrays is still not implemented. Everything else should be there, though.
2007-04-08fix bug 9823: GL_CLIENT_ATTRIB_STACK_DEPTH query fails for indirect renderingWei Wang1-2/+6
2007-04-07MAX_TEXTURE_COORDS_ARB and MAX_TEXTURE_IMAGE_UNITS_ARB had wrong glGet info.Brian1-2/+2
Fixes bug 10371.