summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/arrayobj.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: Directly include mfeatures.h in files that perform feature tests.Vinson Lee2011-01-071-0/+1
|
* mesa: Include mtypes.h in files that use gl_context struct.Vinson Lee2011-01-051-0/+1
| | | | | | Directly include mtypes.h if a file uses a gl_context struct. This allows future removal of headers that are not strictly necessary but indirectly include mtypes.h for a file.
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-12/+12
|
* mesa: Move src/mesa/glapi/dispatch.h to mesa.Chia-I Wu2010-02-251-1/+1
| | | | | | glapi/dispatch.h is a core Mesa header file. Move the header file to main/ to make this clear. It also becomes clear after this change that IN_DRI_DRIVER is only used in core Mesa to enable the remap table.
* Replace the _mesa_*printf() wrappers with the plain libc versionsKristian Høgsberg2010-02-191-5/+5
|
* Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg2010-02-191-1/+1
|
* mesa: Enable true refcounting for NullBufferObj.Michal Krol2010-02-091-0/+4
| | | | | | | | This object can be shared with another context, so we cannot just delete it when the owning context is being destroyed. Ensuring that buffer objects are properly refcounted guarantees NullBufferObj is destroyed when all references to it are removed.
* mesa: implement _mesa_GenVertexArrays() for GL_ARB_vertex_array_objectBrian Paul2009-06-191-4/+29
| | | | | | This also involves adding a gl_array_object::VBOonly field. For the ARB extension, all arrays in the object must reside in a VBO. This flag keeps track of that requirement.
* mesa: implement _mesa_BindVertexArray()Brian Paul2009-06-191-12/+43
|
* mesa: move vertex array objects from shared state to per-contextBrian Paul2009-06-191-21/+8
| | | | | The ARB version requires VAOs to be per-context while the Apple extension was ambiguous.
* mesa: use Elements() macro to limit loops instead of constantsBrian Paul2009-05-221-5/+5
|
* mesa: added gl_array_object::Weight array fieldBrian Paul2009-05-211-0/+3
| | | | | | | We don't really implement vertex weights but in the VBO code this fixes and odd case for the legacy_array[] setup. Before, the vbo->draw_prims() call was always indicating that the vertex weight array was present/enabled when it really wasn't.
* mesa: check FEATURE_point_size_array for PointSize arrayBrian Paul2009-05-211-0/+2
|
* mesa: new _mesa_update_array_object_max_element() functionBrian Paul2009-05-211-1/+77
| | | | This will replace the code in state.c
* mesa: make the array object save/remove functions staticBrian Paul2009-05-071-7/+7
|
* mesa: clean-up vertex array object VBO unbinding and delete/refcountingBrian Paul2009-05-071-31/+33
| | | | | Don't really delete vertex array objects until the refcount hits zero. At that time, unbind any pointers to VBOs.
* mesa: reference counting for gl_array_objectBrian Paul2009-05-071-4/+63
| | | | | Every kind of object that can be shared by multiple contexts should be refcounted.
* mesa: move the NullBufferObj from GLcontext to gl_shared_stateBrian Paul2009-05-071-2/+3
| | | | | Since shared array objects may point to the null/default buffer object, the null/default buffer object should be part of the shared state.
* mesa: improve array initialization code, and set the new array->Format field.Brian Paul2009-01-231-75/+33
|
* mesa: increase max texture image units and GLSL samplers to 16Brian Paul2008-12-311-3/+3
| | | | | | | | | | | | | | | | The max texture coord units is still 8. All the fixed-function paths are still limited to 8 too. But GLSL shaders can use more samplers now. Note that some texcoord-related data structures are declared to be 16 elements in size rather than 8. This just simplifies the code in a few places; the extra elements aren't accessible to the user. These changes haven't been extensively tested yet, but sanity checking has been done. It should be possible to increase the max image units/samplers to 32 without doing anything special. Beyond that we'll need longer bitfields in a few places.
* mesa: point size arraysBrian Paul2008-09-211-0/+9
|
* mesa: replace MALLOC w/ CALLOC to fix valgrind warningBrian Paul2008-09-051-1/+1
|
* mesa: improved gl_buffer_object reference countingBrian Paul2008-09-041-11/+20
| | | | | Use new _mesa_reference_buffer_object() function wherever possible. Fixes buffer object/display list crash reported in ParaView.
* Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵Brian2007-07-041-1/+1
| | | | of -I flags.
* better handling of current attributes. Trivial dlist and varray tests workKeith Whitwell2006-10-301-9/+0
|
* minor clean-upsBrian Paul2006-06-151-9/+4
|
* s/buffer/arrays/Brian Paul2006-06-121-7/+5
|
* Add support for GL_APPLE_vertex_array_object. Several test programsIan Romanick2006-06-121-0/+426
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.