summaryrefslogtreecommitdiff
path: root/src/mesa/main/api_arrayelt.c
AgeCommit message (Collapse)Author
2006-11-22Prune incoming state to the atoms of interest. Hopefully this willKeith Whitwell
prevent driver-initiated statechanges in the middle of DrawElements/DrawArrays from disturbing this code.
2006-11-22Another fixKeith Whitwell
2006-11-21More fixes, glean seems to run now.Keith Whitwell
2006-11-21Fix more typos.Keith Whitwell
2006-11-20Fix typos that meant vbos were never unmappedKeith Whitwell
2006-11-16Make sure vbo's are mapped before accessing their contents inKeith Whitwell
api_arrayelt.c. Reported by Haihao Xiang.
2006-06-12Add support for GL_APPLE_vertex_array_object. Several test programsIan Romanick
and demos are also added. Adding basic support to drivers should be as easy as just enabling the extension, though thorough test would also be required.
2006-04-25No longer alias generic vertex attribs with conventional attribs for ↵Brian Paul
GL_ARB_vertex_program.
2006-03-30Revert my change from 1.37 as being bogus (see ensuing list discussion forAdam Jackson
rationale).
2006-03-17Init FogCoordFuncs[0..5] too, remove some unneeded #includesBrian Paul
2006-03-17remove another test for IN_DRI_DRIVERBrian Paul
2006-01-19Avoid a crash when the user has enabled glVertex{,Attrib}Pointer but hasn'tAdam Jackson
filled in a valid pointer for that attribute or vertex array.
2005-11-25use ADD_POINTERS macro instead of (uintptr_t) castBrian Paul
2005-08-05Fix recent problems with display lists and other parts of the code.Ian Romanick
CALL_by_offset, SET_by_offset, and GET_by_offset all had various problems. The core issue is that parts of the device-independent code in Mesa assumes that all functions have slots in the dispatch table. This is especially true in the display list code. It will merrilly try to set dispatch pointers for glVertexAttrib1fARB even if GL_ARB_vertex_program is not supported. When the GET/SET/CALL macros are invoked, they would read a 0 from the remap table. The problem is that 0 is the dispatch offset for glNewList! One change is that the remap table is now initialized to be full of -1 values. In addtion, all of the *_by_offset marcos misbehave in an obvious way if the specified offset is -1. SET_by_offset will do nothing, GET_by_offset will return NULL, and CALL_by_offset, since it uses GET_by_offset, will segfault. I also had to add GL_EXT_blend_func_separate to the list of default extensions in all_mesa_extensions (src/mesa/drivers/dri/common/utils.c). Even though many drivers do not export this extension, glBlendFunc is internally implemented by calling glBlendFuncSeparate. Without this addition, glBlendFunc stopped working on drivers (such as mga) that do not export GL_EXT_blend_func_separate. There are still a few assertions / crashes in GL_ARB_vertex_program tests, but I don't think that these are related to any of my changes.
2005-07-19remove fprintf()Brian Paul
2005-07-18Wrap every place that accesses a dispatch table with a macro. A new script-Ian Romanick
generated file, called src/mesa/glapi/dispatch.h, is added. This file contains three macros for each API function. It contains a GET, a SET, and a CALL. Each of the macros take a pointer to the context and a pointer to the dispatch table. In several threads on mesa3d-dev we discussed replacing _glapi_add_entrypoint with a new function called _glapi_add_dispatch. For this discussion, the important difference between the two is that the caller of _glapi_add_dispatch does *not* know what the dispatch offset will be at compile time. Because of this callers need to track the dispatch offset returned by _glapi_add_dispatch. http://marc.theaimsgroup.com/?t=111947074700001&r=1&w=2 The downside is that driver code then has to access the dispatch table two different ways. It accesses it using structure tags (e.g., exec->Begin) for functions with fixed offsets and via a remap table (e.g., exec[ remap->NewExtensionFunction ]) for functions without fixed offsets. Yuck! Using the macros allows both types of functions to be accessed identically. If a driver needs to set a pointer for Begin, it does 'SET_Begin(ctx, exec, my_begin_function)'. If it needs to set a pointer for NewExtensionFunction, it does 'SET_NewExtensionFunction(ctx, exec, my_NewExtensionFunction_function)'. Furthermore, if at some point in the future a static offset is assigned for NewExtensionFunction, only the macros need to change (instead of every single place that accesses a table for that function). This code differs slightly from the originally posted patches in that the CALL, GET, and SET marcos no longer take a context pointer as a parameter. Brian Paul had suggested that the remap table could be stored as a global since it would be set at CreateScreen time and would be constant for all contexts. This change reflects that feedback. http://marc.theaimsgroup.com/?t=112087194700001&r=1&w=2
2005-05-05Port Mesa to build on a P64 platform (e.g., Win64). P64 platformsKarl Schultz
use 64-bit pointers and 32-bit longs. So, operations like casting pointers to unsigned long and back to pointer won't work. glheader.h now includes files to define uintptr_t, which should instead be used for this sort of operation. It is an integer type that is the same size as a pointer.
2005-02-11mesa-main-0-NULL.patch from Jeff MuizelaarKeith Whitwell
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-10-24Bug #1682: Mesa core code that gets linked into DRI drivers should never callAdam Jackson
through the GL API directly, but should instead use the GL_CALL macro.
2004-05-27Convert all calls using _glapi_Dispatch to use the new GL_CALL macro.Ian Romanick
2004-04-23GL_DOUBLE doesn't follow GL_FLOAT, fix indexing (Keith Harrison)Brian Paul
2004-03-26fix some warningsBrian Paul
2004-02-24fix incorrect texcoord attribute indexBrian Paul
2004-02-24added some GLAPIENTRY keywords, minor clean-upsBrian Paul
2004-02-24Yet another revision of _ae_update_state(). Issue both conventional ANDBrian Paul
generic vertex attribute commands, ignoring ctx->VertexProgram.Enabled since this function may be used during display list compilation.
2004-02-11Fix the problem found with UT after I had added support for glVertexAttrib.Brian Paul
The problem came from using the _glapi_Dispatch->VertexAttrib*fvNV pointers since they can change from one glArrayElement call to the next.
2004-02-11revert to version 1.18 for now to fix segfaults in some applicationsRoland Scheidegger
2004-02-09Restore some of the previous code for handling conventional vertex attributesBrian Paul
more efficiently. Remove switches/conditionals from vertex attribute wrappers. glMultiTexCoord is implemented in terms of glVertexAttrib.
2004-02-08Updated to handle generic vertex attributes accessed vi glArrayElement().Brian Paul
In fact, handle all conventional vertex attributes in terms of generic attributes (execept for edge flags and color indexes).
2004-01-28Add GLAPIENTRY function decorations for correct operation on Windows.Karl Schultz
2003-12-04Add missing GLAPIENTRYKarl Schultz
2003-11-24Merge vtx-0-2-branchKeith Whitwell
2003-09-17GL_ARB_vertex_buffer_object working now, at least for non-indexedBrian Paul
vertex arrays.
2003-06-05Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.Ian Romanick
2003-05-01Use ctx->Const.MaxTextureImageUnits and MaxTextureCoordUnits in more places.Brian Paul
Misc vertex array / vertex program changes.
2003-01-14First batch of code for GL_NV_fragment_program.Brian Paul
Re-org of some GL_NV_vertex_program code. Replace MAX_TEXTURE_UNITS with MAX_TEXTURE_COORD_UNITS and MAX_TEXTURE_IMAGE_UNITS.
2002-10-29updated email addressesBrian Paul
2002-10-24Header file clean-up:Brian Paul
1. Remove all.h and PC_HEADER junk. 2. Rolled mem.c and mem.h into imports.c and imports.h 3. Include imports.h instead of mem.h Restore _mesa_create/initialize_context() to be like they were in 4.0.4 New wrappers for a few std C functions: _mesa_atoi(), _mesa_strstr(), etc.
2002-06-15Added ctx parameter to _mesa_debug()Brian Paul
Added _mesa_printf() Updated SetDrawBuffer() function in all drivers (ala 4.0.3) Import 4.0.3/DRI changes.
2002-04-19added some castsBrian Paul
2002-04-09bring in changes from dri tcl branchKeith Whitwell
2002-01-14Removed api_compat stuff, there's a better way.Brian Paul
Fixed FogCoord / SecondaryColor mix-ups in api_arrayelt.c
2001-12-28Remove warnings about the difference between function pointers andGareth Hughes
(void *) pointers.
2001-12-20Further help with dri libGL version skewKeith Whitwell
2001-06-01Working implementation of glArrayElt that decomposes to regularKeith Whitwell
glVertex/glNormal/etc calls.
2001-03-12Consistent copyright info (version number, date) across all files.Gareth Hughes
2000-12-26Major rework of tnl moduleKeith Whitwell
New array_cache module Support 8 texture units in core mesa (now support 8 everywhere) Rework core mesa statechange operations to avoid flushing on many noop statechanges.