summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_save_api.c
Commit message (Collapse)AuthorAgeFilesLines
* remove obsolete t_save_api.cBrian2007-06-281-1834/+0
|
* Update _save_VertexAttrib() functions for non-aliasing behaviour.Brian2007-01-101-36/+93
|
* add code for generic attributes 16..31Brian2007-01-091-1/+37
|
* Make sure vbo's are mapped before accessing their contents inKeith Whitwell2006-11-161-0/+8
| | | | api_arrayelt.c. Reported by Haihao Xiang.
* In _save_End(), set CurrentExecPrimitive = PRIM_OUTSIDE_BEGIN_END ifBrian Paul2006-08-251-0/+3
| | | | | we're in GL_COMPILE_AND_EXECUTE mode. This fixes bug 7984.
* improved commentsBrian Paul2006-08-251-5/+18
|
* Put color index attribute into the 6th attribute slot.Brian Paul2006-04-251-14/+7
| | | | | | Update a lot of loops, conditionals to use the _TNL_FIRST/LAST_* values instead of specific vertex attributes. Remove the EdgeFlagv function from the GLvertexformat struct.
* More GLSL code:Michal Krol2006-04-111-16/+16
| | | | | | | | | | | | - use macros to access and modify render inputs bit-field; - un-alias generic vertex attributes for ARB vertex calls; - use MAX_VERTEX_PROGRAM_ATTRIBS (NV code) or MAX_VERTEX_ATTRIBS (ARB code) in place of VERT_ATTRIB_MAX; - define VERT_ATTRIB_GENERIC0..15 for un-aliased vertex attributes for ARB_vertex_shader; - fix generic attribute index range check in arbprogparse.c; - interface GLSL varyings between vertex and fragment shader; - use 64-bit optimised bitset (bitset.h) for render inputs;
* Check for prim/vertex store non-null before messing with refcounts.Keith Whitwell2005-08-101-2/+4
|
* Decrement the context's refcounts on part-used storage structs onKeith Whitwell2005-08-091-1/+11
| | | | context destroy. Fixes memory leak.
* Wrap every place that accesses a dispatch table with a macro. A new script-Ian Romanick2005-07-181-19/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix some valgrind complaintsKeith Whitwell2005-05-101-2/+4
|
* Fix the worst problems with dangling edgeflag references inKeith Whitwell2005-04-231-8/+15
| | | | | | display lists. These mainly arise from edgeflag being the only attribute no longer stored internally as a float and requiring various special case paths to accomodate it.
* use COPY_CLEAN_4V macro to replace using both ASSIGN_4V & COPY_SZ_4VAlan Hourihane2005-03-021-4/+2
|
* mesa-tnl-0-to-NULL.patch from Jeff MuizelaarKeith Whitwell2005-02-101-6/+6
|
* Determine ahead of time whether a display list will include verticesKeith Whitwell2005-01-221-7/+13
| | | | | | which have to be processed in the 'loopback' path. If so, send all vertices that way as the transition from playback->loopback has several problems.
* Change the dispatch offsets for the VertexAttrib*NV functions so they don'tBrian Paul2004-11-271-0/+81
| | | | | | | 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.
* Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch ↵Brian Paul2004-08-251-0/+17
| | | | 1015696)
* Convert all calls using _glapi_Dispatch to use the new GL_CALL macro.Ian Romanick2004-05-271-11/+11
|
* bring over build fixes from stable branchAlan Hourihane2004-04-261-2/+1
|
* Simplify last fix slightly, apply to vtx paths as well.Keith Whitwell2004-04-201-4/+1
|
* When upgrading copied vertices, distinguish between an attributeKeith Whitwell2004-04-201-5/+14
| | | | | entering a vertex for the first time and one which was already present but increasing its size. Fixes Brian's normal.c bug.
* fix bad array indexing in _save_current_init() that caused context state to ↵Brian Paul2004-04-021-4/+5
| | | | get clobbered
* disabled naughty cheats and protected the choosers behind AllowCodeGenDaniel Borca2004-04-021-1/+1
|
* added codegen'ed choosersDaniel Borca2004-04-021-0/+10
|
* glDrawArrays loop was wrongBrian Paul2004-02-241-2/+2
|
* don't call gl functions directly, jump through _glapi_Dispatch tableBrian Paul2004-01-311-11/+11
|
* Cosmetic changes.Brian Paul2004-01-151-14/+14
| | | | | Added a bunch of const qualifiers. Use _mesa_memcpy() instead of memcpy(), etc.
* keeping things safe: sanity check backDaniel Borca2004-01-081-0/+2
|
* removed unnecessary (now) sanity checkDaniel Borca2004-01-081-4/+0
|
* sanity check for vertex counterDaniel Borca2004-01-071-0/+4
|
* Call UpdateMaterials when they have changedKeith Whitwell2003-12-091-3/+5
|
* Relax assertion to account for empty primitives.Keith Whitwell2003-12-061-1/+2
|
* Backout last change on the displaylist path to fix gears (and probablyKeith Whitwell2003-12-051-17/+5
| | | | everything else).
* include glheader.h first, to prevent warnings about GLAPIENTRYP being redefinedBrian Paul2003-12-051-0/+1
|
* Add missing GLAPIENTRYKarl Schultz2003-12-041-65/+65
|
* Ensure PRIM_BEGIN marker isn't lost when incomplete primitives are wrapped.Keith Whitwell2003-12-031-5/+17
|
* fix assorted g++ warningsBrian Paul2003-11-251-18/+18
|
* Remove unnecessary usage of __FUNCTION__.Brian Paul2003-11-251-14/+12
| | | | #define MESA_FUNCTION to __FUNCTION__ if MESA_DEBUG is defined.
* Merge vtx-0-2-branchKeith Whitwell2003-11-241-0/+1580