aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo_save_api.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa/main: Make FEATURE_dlist follow feature conventions.Chia-I Wu2009-09-301-2/+1
| | | | | 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-301-8/+3
| | | | | 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-301-1/+2
| | | | This allows the removal of AEcontext.
* mesa: Add support for ARB_draw_elements_base_vertex.Eric Anholt2009-09-081-3/+33
|
* mesa: Make MultiDrawElements submit multiple primitives at once.Eric Anholt2009-09-011-0/+5
| | | | | | | | | Previously, MultiDrawElements just called DrawElements a bunch of times. By sending several primitives down the pipeline at once, we avoid a bunch of validation. On my GL demo, this improves fps by 2.5% (+/- .41%) and reduces CPU usage by 70.5% (+/- 2.9%) (n=3). Reviewed by: Ian Romanick <[email protected]>
* vbo: use _mesa_is_bufferobj()Brian Paul2009-08-121-1/+1
|
* Merge branch 'mesa_7_5_branch'Brian Paul2009-07-131-0/+5
|\
| * vbo: fix vbo/dlist memory leakBrian Paul2009-07-101-0/+5
| | | | | | | | Based on a patch by [email protected]
* | Merge branch 'mesa_7_5_branch'Jakob Bornecrantz2009-07-031-21/+35
|\| | | | | | | | | | | Conflicts: src/mesa/main/dlist.c src/mesa/vbo/vbo_save_api.c
| * mesa/vbo: fix compile and replay of nodes ending in a FALLBACKKeith Whitwell2009-06-301-13/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Where vbo save nodes are terminated with a call to DO_FALLBACK(), as in the case of a recursive CallList which is itself within a Begin/End pair, there two problems: 1) The display list node's primitive information was incorrect, stating the cut-off prim had zero vertices 2) On replay, we would get confused by a primitive that started in a node, but was terminated by individual opcodes. This change fixes the first problem by correctly terminating the last primitive on fallback, and the second by forcing the display list to use the Loopback path, converting all nodes into immediate-mode rendering. The loopback fix is a performance hit, but avoiding this would require a fairly large rework of this code.
| * mesa/vbo: use _lookup_prim_by_nr for debuggingKeith Whitwell2009-06-301-1/+1
| | | | | | | | Switch over to specialized enum lookup for primitives
* | mesa: Make VBO dlist printing use the same path as other dlist printing.Eric Anholt2009-06-191-12/+12
|/ | | | | | I was rather confused when mesa_print_display_list didn't show any of my glBegin()..glEnd(). Nothing but print_list appears to call this function, so matching its behavior seems like a good idea.
* vbo: cache last dlist vertex in malloced memoryKeith Whitwell2009-04-161-0/+25
| | | | | | Avoids repeated mapping of the VBO buffer on display list replay. We need access to the final vertex in order to update the GL current attrib values.
* Merge commit 'origin/gallium-0.1'Keith Whitwell2009-03-031-8/+8
|\ | | | | | | | | | | | | | | | | | | Conflicts: scons/gallium.py src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c src/gallium/include/pipe/p_defines.h src/mesa/vbo/vbo_exec_api.c src/mesa/vbo/vbo_exec_draw.c
| * vbo: use MapBufferRange where availableKeith Whitwell2009-03-031-8/+8
| | | | | | | | | | | | Previously would have to allocate a new VBO after firing a draw command as subsequent call to Map() on old VBO might block if the driver had submitted the commands to hardware.
| * mesa: fix display list regression (check if save->prim_count > 0 in ↵Brian Paul2008-09-161-5/+7
| | | | | | | | vbo_save_EndList())
| * mesa: get another class of degenerate dlists workingKeith Whitwell2008-09-151-0/+24
| | | | | | | | Primitive begin in one dlist, end in another.
| * mesa: improved gl_buffer_object reference countingBrian Paul2008-09-041-4/+13
| | | | | | | | | | Use new _mesa_reference_buffer_object() function wherever possible. Fixes buffer object/display list crash reported in ParaView.
| * Fix segfault in _save_OBE_DrawElements() when using VBO and display list ↵Brian Paul2008-05-301-0/+3
| | | | | | | | | | | | (bug 16156) This was previously fixed in master by commit 982dcb74fd19b88208d127b8019e2a2af979cac2 by Haihao Xiang.
* | mesa: display list clean-upsBrian2009-01-311-3/+3
| | | | | | | | Rename some structs and fields to be more consistant with the rest of mesa.
* | mesa: fix display list regression (check if save->prim_count > 0 in ↵Brian Paul2008-09-161-5/+7
| | | | | | | | vbo_save_EndList())
* | mesa: get another class of degenerate dlists workingKeith Whitwell2008-09-151-0/+24
| | | | | | | | Primitive begin in one dlist, end in another.
* | mesa: improved gl_buffer_object reference countingBrian Paul2008-09-041-4/+13
| | | | | | | | | | Use new _mesa_reference_buffer_object() function wherever possible. Fixes buffer object/display list crash reported in ParaView.
* | Fix an error in _save_OBE_DrawElementsXiang, Haihao2007-07-311-0/+3
|/ | | | | | In the case that a buffer object is bound to ELEMENT_ARRARY_BUFFER, it is invalid to directly dereference indices passed to glDrawElements.
* Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵Brian2007-07-041-9/+9
| | | | of -I flags.
* a variety of fixes for MingWzhang2007-06-281-0/+4
|
* Fix invalid enums passed to MapBufferAapo Tahkola2007-01-181-1/+1
|
* Merge branch 'master' of git+ssh://[email protected]/git/mesa/mesa ↵Keith Whitwell2007-01-161-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | into vbo-0.2 Conflicts: src/mesa/array_cache/sources src/mesa/drivers/dri/i965/brw_context.c src/mesa/drivers/dri/i965/brw_draw.c src/mesa/drivers/dri/i965/brw_fallback.c src/mesa/drivers/dri/i965/brw_vs_emit.c src/mesa/drivers/dri/i965/brw_vs_tnl.c src/mesa/drivers/dri/mach64/mach64_context.c src/mesa/main/extensions.c src/mesa/main/getstring.c src/mesa/tnl/sources src/mesa/tnl/t_save_api.c src/mesa/tnl/t_save_playback.c src/mesa/tnl/t_vtx_api.c src/mesa/tnl/t_vtx_exec.c src/mesa/vbo/vbo_attrib.h src/mesa/vbo/vbo_exec_api.c src/mesa/vbo/vbo_save_api.c src/mesa/vbo/vbo_save_draw.c
* Remove debug, reenable inplace splitting.keithw2007-01-151-2/+0
|
* Remove special-case handling for index and edgeflagKeith Whitwell2007-01-151-32/+12
| | | | | This isn't required with the changes to core mesa and the new attribute layout.
* Don't perform dangling attribute check on POS attribute. It can't byKeith Whitwell2006-11-201-1/+1
| | | | | | definition dangle (every vertex has a position). However save->currentsz isn't properly maintained for this attribute, as there is no current position value to track. Based on patch from Haihao Xiang.
* Checkpoint of new vbo-building code. Currently builds regular arraysKeith Whitwell2006-10-291-0/+1160
rather than VBO's - VBOs are easy but need to look closer at the driver interface. The trivial/tri demo works.