summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_draw.c
Commit message (Collapse)AuthorAgeFilesLines
* gallium: add facilities for indirect drawingChristoph Bumiller2014-07-021-0/+43
| | | | | | v2: Added comments to util_draw_indirect, clarified and fixed map size. Removed unlikely().
* util/u_draw: Skip rendering instead of aborting when excessive number of ↵José Fonseca2012-12-041-2/+9
| | | | | | | | | | | | instances is found. This is a temporary hack. I believe the only way of properly fixing this is to check buffer overflow just before fetching based on addresses, instead of number of vertices/instances. This change simply allows tests that stress buffer overflows to complete without asserting, and should not affect valid rendering. Reviewed-by: Brian Paul <brianp@vmware.com>
* gallium/util: remove unused parameter nr_vertex_buffers in util_draw_max_indexMarek Olšák2012-05-121-1/+0
|
* gallium: add void *user_buffer in pipe_vertex_bufferMarek Olšák2012-04-301-0/+4
| | | | | | | | | | | | This reduces CPU overhead in st_draw_vbo and removes a lot of unnecessary code in that function which was required only to comply with the gallium interface, but wasn't any useful really. Adapted drivers: i915, llvmpipe, r300, softpipe. No changes required in: r600, radeonsi. User vertex buffers have been disabled in nv30, nv50, nvc0 and svga to keep things working.
* util/draw: replace assertions with conditionals in util_draw_max_index()Brian Paul2011-11-151-8/+24
| | | | | | | | | | | | | | Don't assert/die if a VBO is too small. Return zero instead. For debug builds, emit a warning message since this is an unusual situation that might indicate that there's a bug in the app. Note that util_draw_max_index() now returns max_index+1 instead of max_index. This lets us return zero to indicate that one of the VBOs is too small to draw anything. Fixes a failure with the new piglit vbo-too-small test. Reviewed-by: José Fonseca <jfonseca@vmware.com>
* draw: Prevent out-of-bounds vertex buffer access.José Fonseca2011-04-011-0/+99
Based on some code and ideas from Keith Whitwell.