summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_save_api.c
AgeCommit message (Collapse)Author
2007-01-10Update _save_VertexAttrib() functions for non-aliasing behaviour.Brian
2007-01-09add code for generic attributes 16..31Brian
2006-11-16Make sure vbo's are mapped before accessing their contents inKeith Whitwell
api_arrayelt.c. Reported by Haihao Xiang.
2006-08-25In _save_End(), set CurrentExecPrimitive = PRIM_OUTSIDE_BEGIN_END ifBrian Paul
we're in GL_COMPILE_AND_EXECUTE mode. This fixes bug 7984.
2006-08-25improved commentsBrian Paul
2006-04-25Put color index attribute into the 6th attribute slot.Brian Paul
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.
2006-04-11More GLSL code:Michal Krol
- 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;
2005-08-10Check for prim/vertex store non-null before messing with refcounts.Keith Whitwell
2005-08-09Decrement the context's refcounts on part-used storage structs onKeith Whitwell
context destroy. Fixes memory leak.
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-10Fix some valgrind complaintsKeith Whitwell
2005-04-23Fix the worst problems with dangling edgeflag references inKeith Whitwell
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.
2005-03-02use COPY_CLEAN_4V macro to replace using both ASSIGN_4V & COPY_SZ_4VAlan Hourihane
2005-02-10mesa-tnl-0-to-NULL.patch from Jeff MuizelaarKeith Whitwell
2005-01-22Determine ahead of time whether a display list will include verticesKeith Whitwell
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.
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-08-25Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch ↵Brian Paul
1015696)
2004-05-27Convert all calls using _glapi_Dispatch to use the new GL_CALL macro.Ian Romanick
2004-04-26bring over build fixes from stable branchAlan Hourihane
2004-04-20Simplify last fix slightly, apply to vtx paths as well.Keith Whitwell
2004-04-20When upgrading copied vertices, distinguish between an attributeKeith Whitwell
entering a vertex for the first time and one which was already present but increasing its size. Fixes Brian's normal.c bug.
2004-04-02fix bad array indexing in _save_current_init() that caused context state to ↵Brian Paul
get clobbered
2004-04-02disabled naughty cheats and protected the choosers behind AllowCodeGenDaniel Borca
2004-04-02added codegen'ed choosersDaniel Borca
2004-02-24glDrawArrays loop was wrongBrian Paul
2004-01-31don't call gl functions directly, jump through _glapi_Dispatch tableBrian Paul
2004-01-15Cosmetic changes.Brian Paul
Added a bunch of const qualifiers. Use _mesa_memcpy() instead of memcpy(), etc.
2004-01-08keeping things safe: sanity check backDaniel Borca
2004-01-08removed unnecessary (now) sanity checkDaniel Borca
2004-01-07sanity check for vertex counterDaniel Borca
2003-12-09Call UpdateMaterials when they have changedKeith Whitwell
2003-12-06Relax assertion to account for empty primitives.Keith Whitwell
2003-12-05Backout last change on the displaylist path to fix gears (and probablyKeith Whitwell
everything else).
2003-12-05include glheader.h first, to prevent warnings about GLAPIENTRYP being redefinedBrian Paul
2003-12-04Add missing GLAPIENTRYKarl Schultz
2003-12-03Ensure PRIM_BEGIN marker isn't lost when incomplete primitives are wrapped.Keith Whitwell
2003-11-25fix assorted g++ warningsBrian Paul
2003-11-25Remove unnecessary usage of __FUNCTION__.Brian Paul
#define MESA_FUNCTION to __FUNCTION__ if MESA_DEBUG is defined.
2003-11-24Merge vtx-0-2-branchKeith Whitwell