gallium: add void *user_buffer in pipe_vertex_buffer
authorMarek Olšák <maraeo@gmail.com>
Tue, 24 Apr 2012 18:58:47 +0000 (20:58 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sun, 29 Apr 2012 23:14:26 +0000 (01:14 +0200)
commit4552fd50d959ab99546cfa994f8ba5bdf5d66bc7
tree6fa793d4b11531704029adfd33bfd5a94b90e230
parent7a0545972694e6afc6c5ac60db563defa79c20d9
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.
17 files changed:
src/gallium/auxiliary/draw/draw_llvm.c
src/gallium/auxiliary/util/u_draw.c
src/gallium/auxiliary/util/u_vbuf.c
src/gallium/drivers/i915/i915_state.c
src/gallium/drivers/llvmpipe/lp_draw_arrays.c
src/gallium/drivers/nv30/nv30_draw.c
src/gallium/drivers/nv30/nv30_screen.c
src/gallium/drivers/nv50/nv50_screen.c
src/gallium/drivers/nvc0/nvc0_screen.c
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/softpipe/sp_draw_arrays.c
src/gallium/drivers/svga/svga_screen.c
src/gallium/include/pipe/p_state.h
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_context.h
src/mesa/state_tracker/st_draw.c
src/mesa/state_tracker/st_draw_feedback.c