History log of /external/mesa3d/src/gallium/auxiliary/util/u_draw.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bc198f8e63f8fa297a458892c1c51ba8808c73a5 05-Apr-2013 Christoph Bumiller <e0425955@student.tuwien.ac.at> gallium: add facilities for indirect drawing

v2:
Added comments to util_draw_indirect, clarified and fixed map size.
Removed unlikely().
/external/mesa3d/src/gallium/auxiliary/util/u_draw.c
4da0cb83ab6d82ba3cf011bb3b9b012bd27f7bfc 16-Nov-2012 José Fonseca <jfonseca@vmware.com> util/u_draw: Skip rendering instead of aborting when excessive number of 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>
/external/mesa3d/src/gallium/auxiliary/util/u_draw.c
685a28fd8a046e8dac02c2c26ab8b169de7a2a29 30-Mar-2012 Marek Olšák <maraeo@gmail.com> gallium/util: remove unused parameter nr_vertex_buffers in util_draw_max_index
/external/mesa3d/src/gallium/auxiliary/util/u_draw.c
4552fd50d959ab99546cfa994f8ba5bdf5d66bc7 24-Apr-2012 Marek Olšák <maraeo@gmail.com> gallium: add void *user_buffer in pipe_vertex_buffer

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.
/external/mesa3d/src/gallium/auxiliary/util/u_draw.c
438d7ac146dc89d1c2943610c662c57e11a47382 12-Nov-2011 Brian Paul <brianp@vmware.com> util/draw: replace assertions with conditionals in util_draw_max_index()

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>
/external/mesa3d/src/gallium/auxiliary/util/u_draw.c
3733da31e8b4405b65e1b6ca3b6599ecc5af5fe7 31-Mar-2011 José Fonseca <jfonseca@vmware.com> draw: Prevent out-of-bounds vertex buffer access.

Based on some code and ideas from Keith Whitwell.
/external/mesa3d/src/gallium/auxiliary/util/u_draw.c