summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo_split_inplace.c
Commit message (Collapse)AuthorAgeFilesLines
* 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: Avoid extra validation of DrawElements.Eric Anholt2009-08-121-0/+1
| | | | | | | | | | | | | This saves mapping the index buffer to get a bounds on the indices that drivers just drop on the floor in the VBO case (cache win), saves a bonus walk of the indices in the CheckArrayBounds case, and other miscellaneous validation. On intel it's a particularly a large win (50-100% in my app) because even though we let the indices stay in both CPU and GPU caches, we still end up waiting for the GPU to be done with the buffer before reading from it. Drivers that want the min/max_index fields must now check index_bounds_valid and use vbo_get_minmax_index before using them.
* vbo: Fix build on windows.Michal Krol2009-07-301-1/+1
|
* mesa/vbo: always recalculate min_index and max_index when splitting verticesMaciej Cencora2009-07-081-26/+10
|
* mesa: move the NullBufferObj from GLcontext to gl_shared_stateBrian Paul2009-05-071-1/+1
| | | | | 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: Apply MSVC portability fixes from Alan Hourihane.José Fonseca2008-09-231-1/+1
|
* Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵Brian2007-07-041-3/+3
| | | | of -I flags.
* Use new rebase helper. Remove other rebase code.Keith Whitwell2007-01-301-1/+0
|
* Remove debug, reenable inplace splitting.keithw2007-01-151-15/+1
|
* New files to manage splitting drawing commandskeithw2007-01-151-0/+301