aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/varray.c
Commit message (Collapse)AuthorAgeFilesLines
...
* mesa: added _ElementSize field to gl_client_arrayBrian Paul2009-05-071-0/+2
| | | | Will be handy for bounds checking later...
* mesa: update glColorPointer, etc for GL_EXT_vertex_array_bgraBrian Paul2009-01-231-18/+68
| | | | Add new error checking, set array state appropriately.
* mesa: added case for fixed ptBrian Paul2008-09-211-0/+5
|
* mesa: point size arraysBrian Paul2008-09-211-0/+31
|
* mesa: GL_BYTE vertex/texcoord arraysBrian Paul2008-09-211-0/+10
|
* mesa: initial support for fixed-pt vertex arraysBrian Paul2008-09-211-0/+20
|
* mesa: improved gl_buffer_object reference countingBrian Paul2008-09-041-10/+5
| | | | | Use new _mesa_reference_buffer_object() function wherever possible. Fixes buffer object/display list crash reported in ParaView.
* mesa: remove an error check for NV_v_p that doesn't apply to ARB_v_pBrian Paul2008-07-291-5/+0
|
* Set normalized flag for GLubyte arrays in _mesa_VertexAttribPointerNV()Markus Amsler2008-03-091-1/+2
|
* Allow first != 0 in mesa CVA handling, and add more error checking.Eric Anholt2008-02-041-7/+18
|
* Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵Brian2007-07-041-1/+1
| | | | of -I flags.
* fix incorrect _MaxElement calculationRoland Scheidegger2007-03-271-1/+2
| | | | | | The calculation of _MaxElement was wrong if the stride was larger than elementSize, which lead to rejection of every DrawElements call which accessed the maximum element if CheckArrayBounds was enabled.
* get rid of GL_BOOLEAN definition (bug 8113)Brian Paul2006-09-041-5/+1
|
* clean-ups and new commentsBrian Paul2006-06-131-9/+19
|
* Add support for GL_APPLE_vertex_array_object. Several test programsIan Romanick2006-06-121-77/+13
| | | | | | | 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.
* No longer alias generic vertex attribs with conventional attribs for ↵Brian Paul2006-04-251-11/+12
| | | | GL_ARB_vertex_program.
* Set array normalization flag for normals, colors (Keith)Brian Paul2006-04-131-3/+3
|
* More GLSL code:Michal Krol2006-04-111-3/+3
| | | | | | | | | | | | - 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;
* Re-org and clean-up of vertx/fragment program limits (instructions,Brian Paul2005-11-011-1/+1
| | | | | | | temporaries, parameters, etc). glGetProgramivARB() now returns all the right things. Updated i915 and r300 code to initialize program native limits and current program's native instruction/temporary/etc counts.
* Wrap every place that accesses a dispatch table with a macro. A new script-Ian Romanick2005-07-181-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* VBO RefCount fix (David Reveman)Brian Paul2004-09-271-0/+1
|
* don't futz with GL_CLIENT_ACTIVE_TEXTURE in glClientActiveTexture (Robert ↵Brian Paul2004-03-101-22/+4
| | | | Merrill)
* more changes to VBO reference counting and deletionBrian Paul2004-03-031-0/+2
|
* Do more bookkeeping of vertex buffer object reference counts.Brian Paul2004-02-111-1/+3
| | | | Incr/decr counts when doing glPush/PopClientAttrib(GL_CLIENT_VERTEX_ARRAY_BIT).
* init an uninitialized variable. This doesn't fix a latent bug becauseKarl Schultz2004-01-131-1/+1
| | | | the variable was multiplied by zero.
* remove TexCoordInterleaveFactor. Clean up _mesa_InterleavedArrays()Brian Paul2003-12-121-15/+15
|
* Fix some problems with glDrawElements and vertex buffer objects.Brian Paul2003-12-041-10/+4
|
* Initial work for bounds checking of vertex arrays and vertex buffer objects.Brian Paul2003-10-221-180/+135
| | | | | | Only glDrawArrays() done so far. Simplified glVertex/Color/etcPointer functions. Misc casts added here and there.
* Added GLAPIENTRY decorations for all first level OpenGL API function entryKendall Bennett2003-10-211-24/+24
| | | | | points so that the calling conventions will work correctly with the assembler stubs with the Open Watcom compiler.
* castsBrian Paul2003-09-191-9/+9
|
* Implement GL_ELEMENT_ARRAY_BUFFER_ARB for buffer objects.Brian Paul2003-09-171-0/+8
|
* More work on ARB_vertex_buffer_object.Brian Paul2003-09-171-18/+47
| | | | | Use GLubyte * instead of void * for gl_client_array->Ptr to simplify upcoming pointer arithmetic changes.
* Added support for GL_IBM_multimode_draw_arrays.Ian Romanick2003-08-221-0/+40
| | | | | | | | Added non-static entrypoints and the name string for GL_SUN_multi_draw_arrays (identical to GL_EXT_multi_draw_arrays). Made add_newer_entrypoints (in src/mesa/main/context.c) table driven. This reduced the size of context.o by about 3KB.
* Merge Jose's documentation and core Mesa changes from embedded branchKeith Whitwell2003-07-171-1/+69
|
* added missing types to _mesa_VertexAttribPointerARB()Brian Paul2003-06-111-0/+13
|
* Use ctx->Const.MaxTextureImageUnits and MaxTextureCoordUnits in more places.Brian Paul2003-05-011-6/+72
| | | | Misc vertex array / vertex program changes.
* Killed mmath.[ch]. Moved low-level functions/assembly code into imports.[ch]Brian Paul2003-03-011-4/+3
| | | | | Moved type conversion and interpolation macros into macros.h Updated all the files that used to include mmath.h
* Header file clean-up:Brian Paul2002-10-241-5/+1
| | | | | | | | 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.
* Implemented GL_EXT_multi_draw_arrays: glMultiDrawArraysEXT() and ↵Brian Paul2002-06-301-1/+39
| | | | glMultiDrawElementsEXT().
* Added ctx parameter to _mesa_debug()Brian Paul2002-06-151-18/+12
| | | | | | Added _mesa_printf() Updated SetDrawBuffer() function in all drivers (ala 4.0.3) Import 4.0.3/DRI changes.
* more removal of fprintf() callsBrian Paul2002-06-131-11/+9
|
* vertex program attribute array workBrian Paul2002-04-211-9/+6
|
* repair Array.NewState flags (Michael Fitzpatrick)Brian Paul2002-04-041-13/+14
|
* Moved _mesa_VertexAttribPointerNV into varray.c.Brian Paul2002-01-111-78/+142
| | | | | | | | Removed dead placeholder functions from vpstate.[ch]. Changed gl_client_array's Enabled field to GLuint so it can actually hold the flags we're storing in it! Always do the switch (type) code in the vertex array functions to that <type> gets error checked!
* Vertex program checkpoint commit: converted all vertex attributes (color,Brian Paul2002-01-051-3/+6
| | | | | | normal, texcoords, fogcoord, secondary color, etc) to GLfloat[4] datatype. Aliasing of glVertex, glNormal, glColor, glFogCoord, etc. to glVertexAttrib now complete.
* Consistent copyright info (version number, date) across all files.Gareth Hughes2001-03-121-3/+3
|
* fixed a bunch of g++ warnings/errors. Compiling with g++ can help find lots ↵Brian Paul2001-03-071-4/+5
| | | | of potential problems
* lots of gl_*() to _mesa_*() namespace clean-upBrian Paul2001-03-031-27/+27
|
* various compilation/warning fixesKeith Whitwell2001-01-051-3/+3
|
* Add render stage for unclipped vb's to fx driver.Keith Whitwell2000-12-281-1/+3
| | | | | | Bump MAX_TEXTURE_UNITS to 8 Fix mem. leak in destroy_lists Fix crash in q3 (cva generally)