vbo: create a new draw function interface for indirect draws
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 30 Dec 2015 23:10:56 +0000 (18:10 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 7 Jan 2016 23:38:45 +0000 (18:38 -0500)
commit60d0cfd4298d12d004e5f07ee5f94661ce0cc80f
treeabd32ae4c2f65829ade7cbbac95c8790bc8cef96
parent2923c7a0ed92a29da029183356e81ad55e615cf7
vbo: create a new draw function interface for indirect draws

All indirect draws are passed to the new draw function. By default
there's a fallback implementation which pipes it right back to
draw_prims, but eventually both the fallback and draw_prim's support for
indirect drawing should be removed.

This should allow a backend to properly support ARB_multi_draw_indirect
and ARB_indirect_parameters.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/vbo/vbo.h
src/mesa/vbo/vbo_context.c
src/mesa/vbo/vbo_context.h
src/mesa/vbo/vbo_exec_array.c