summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo
Commit message (Collapse)AuthorAgeFilesLines
* vbo: misc clean-upsBrian Paul2010-06-041-29/+36
|
* vbo: Remove unnecessary header.Vinson Lee2010-05-301-1/+0
|
* vbo: comments and whitespaceBrian Paul2010-05-271-7/+5
|
* vbo: remove unused prototypeBrian Paul2010-05-271-3/+0
|
* vbo: remove dead codeBrian Paul2010-05-271-21/+0
|
* vbo: update/add commentsBrian Paul2010-05-271-15/+62
|
* mesa/es: Remove omit list.Chia-I Wu2010-05-127-7/+35
| | | | | vbo/vbo_save* are the last members on the omit list. Test FEATURE_dlist in the sources and remove the omit list.
* mesa: Only initialize save dispatch table for OpenGLKristian Høgsberg2010-05-031-2/+4
|
* mesa: Move GLES1/2 vbo entrypoints to vbo_exec_api.cKristian Høgsberg2010-04-272-0/+81
| | | | This let's us drop stubs.c.
* mesa: unmap the immediate mode VB before destroying itBrian Paul2010-04-191-1/+4
| | | | | | | Fixes failed assertion from fd.o bug 27713. The assertion was added with the new resource/transfer changes. This patch could apply to the 7.8 branch but it's not essential.
* mesa: implement core Mesa support for GL_ARB_draw_instancedBrian Paul2010-04-044-4/+90
|
* vbo: Fix vbo_split_copy to pass correct max_index to draw.Pauli Nieminen2010-03-211-1/+1
| | | | | | | | vbo_split_copy was passing one past the max_index to draw function which caused _tnl_draw_prims function to read uninitialized values from copied array. Bug was spoted in valgrind report of progs/tests/cva_huge.
* Grammar and spelling fixesJeff Smith2010-03-121-1/+1
| | | | | Signed-off-by: Jeff Smith <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* mesa: Move src/mesa/glapi/dispatch.h to mesa.Chia-I Wu2010-02-254-4/+4
| | | | | | 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.
* vbo: remove dead codeBrian Paul2010-02-241-35/+3
|
* Drop macro wrappers for the aligned memory functionsKristian Høgsberg2010-02-191-2/+2
|
* Replace the _mesa_*printf() wrappers with the plain libc versionsKristian Høgsberg2010-02-198-84/+84
|
* Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg2010-02-193-13/+13
|
* Remove _mesa_memcpy in favor of plain memcpy.Kenneth Graunke2010-02-193-28/+28
| | | | This may break the SUNOS4 build, but it's no longer relevant.
* vbo: fix broken glMultiDrawElements()Brian Paul2010-02-151-4/+5
| | | | | | Seems to be a regression from commit 60b08eb1fdf287d28ec66b9282513ab35a61aee0. (cherry picked from commit c5a4cfb03ff17955c049f16ac805f5837ea4b633)
* mesa: Enable true refcounting for NullBufferObj.Michal Krol2010-02-092-2/+22
| | | | | | | | 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: Fix null buffer object reference counting.José Fonseca2010-02-091-0/+11
| | | | | | | | Always use _mesa_reference_buffer_object, and never call ctx->Driver.DeleteBuffer() directly to prevent dangling pointers to the null buffer object. This fixes crash/assertions in sharedtex_mt and Autodesk Mudbox.
* vbo: fix void * arithmetic warningKeith Whitwell2010-02-031-1/+2
|
* vbo: Fix up in-place splitting for non-contiguous/indexed primitives.Francisco Jerez2010-02-031-51/+62
| | | | | | | | | | | | | | The in-place splitting code wasn't dealing with index buffers at all (and it was being called from vbo_split_prims for too big index buffers, causing some occasional corruption). Additionally, it wasn't taking into account primitives arrays with non-contiguous indices (e.g. given prim[0].start = 0 and prim[1].start = max_verts, it would happily call back the driver with (max_index - min_index) still greater than max_verts, causing infinite recursion). It still doesn't handle too large indexed vertex buffers: use vbo_split_copy for that.
* vbo: fix missing state validation bugsBrian Paul2010-01-291-14/+14
| | | | | | | | | | | | | | | Commit 2708ddfb06a36d8568e2aa130bf1f7d551fcd309 caused a few regressions. We need to check/validate state after calling bind_arrays() because it might set the _NEW_ARRAYS flag if the varying VP inputs change. The symptom of this problem was some attribute arrays being ignored (or interpreted as constant-valued) in glDrawRangeElements or glMultiDrawElements. A follow-on patch will add some additional asserts to try to catch this kind of thing in the future. (cherry picked from commit 3cba779e16935f7c3a0bfd8af48bd5e015068e96)
* mesa: Warn when indices are out of bounds, but do not skip the draw in debug ↵Brian Paul2010-01-291-3/+1
| | | | | | | | | | | | builds. The driver (or preferably the hardware) should handle out of bounds indices. If there are problems then it's better to detect those in the debug builds. (cherry picked from commit e3257912e006120f6ab611e77005eed1a464030a)
* mesa: fix int/uint comparison warningsBrian Paul2010-01-272-6/+8
| | | | Reported by Karl Schultz.
* vbo: if 'end' is out of bounds, clamp itBrian Paul2010-01-261-0/+4
| | | | | If we determine that the 'end' parameter to glDrawElements() is out of bounds, clamp it to the max legal index value.
* vbo: clamp DrawElements start/end to max possible valuesBrian Paul2010-01-261-0/+10
| | | | | Some apps are sloppy with their start/end values. Clamp them to max possible values to prevent problems later.
* vbo: Remove unnecessary headers from vbo_exec.c.Vinson Lee2010-01-121-3/+0
|
* vbo: Remove unnecessary header from vbo_exec_array.c.Vinson Lee2010-01-121-1/+0
|
* vbo: Remove unnecessary header from vbo_exec_draw.c.Vinson Lee2010-01-121-1/+0
|
* vbo: Remove unnecessary headers from vbo_save.c.Vinson Lee2010-01-121-2/+0
|
* vbo: Remove unnecessary header from vbo_save_loopback.c.Vinson Lee2010-01-111-1/+0
|
* vbo: Remove unnecessary header from vbo_split_copy.c.Vinson Lee2010-01-111-3/+0
|
* Merge branch 'mesa_7_6_branch' into mesa_7_7_branchBrian Paul2009-12-111-12/+21
|\
| * vbo: fix array index out of bounds error, and fix evaluator prioritiesBrian Paul2009-12-081-12/+21
| | | | | | | | | | | | | | Fixes bug 25525. Plus, the GL_NV_vertex_program evaluators alias and override the convential evaluator maps, so set their state after the conventional maps.
* | vbo: make flush recursion check code per-contextBrian Paul2009-12-012-5/+10
| | | | | | | | This fixes invalid failed assertions when running multi-threaded apps.
* | vbo: added recursion check in vbo_exec_FlushVertices()Brian Paul2009-11-191-1/+17
| |
* | mesa: fix assorted compiler warningsBrian Paul2009-11-171-1/+1
| |
* | Merge branch 'mesa_7_6_branch'Brian Paul2009-11-043-1/+11
|\| | | | | | | | | | | Conflicts: src/mesa/drivers/windows/gdi/mesa.def
| * vbo: fix out-of-bounds array accessBrian Paul2009-11-043-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | The exec->vtx.inputs[] array was being written past its end. This was clobbering the following vbo_exec_context::eval state. Probably not noticed since evaluators and immediate mode rendering don't happen at the same time. Fixed the loop in vbo_exec_vtx_init(). Changed the size of the vbo_exec_context::vtx.arrays[] array. Added a bunch of debug-build assertions. Issue found by Vinson Lee.
* | mesa: fix up vbo commentsBrian Paul2009-10-221-8/+14
| |
* | vbo: clean-ups, reformattingBrian Paul2009-10-141-25/+24
| |
* | mesa: added MESA_VERBOSE option 'draw' to debug glDrawArrays/Elements, etc.Brian Paul2009-10-141-0/+29
| |
* | mesa: rename display list functionsBrian Paul2009-10-071-6/+6
| | | | | | | | | | _mesa_alloc_instruction() sounded like it was related to vertex/fragment program instructions, but it wasn't.
* | mesa/main: New feature FEATURE_beginend.Chia-I Wu2009-09-303-1/+117
| | | | | | | | | | This feature corresponds to the Begin/End paradigm. Disabling this feature also eliminates the use of GLvertexformat completely.
* | mesa/main: Make FEATURE_dlist follow feature conventions.Chia-I Wu2009-09-302-8/+2
| | | | | | | | | | As shown in mfeatures.h, this allows users of dlist.h to work without knowing if the feature is available.
* | mesa/main: Make FEATURE_evaluators follow feature conventions.Chia-I Wu2009-09-302-17/+13
| | | | | | | | | | As shown in mfeatures.h, this allows users of eval.h to work without knowing if the feature is available.
* | mesa/main: New feature FEATURE_arrayelt.Chia-I Wu2009-09-302-2/+4
| | | | | | | | This allows the removal of AEcontext.