st/mesa: add support for new mesa indirect draw interface
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 31 Dec 2015 19:11:07 +0000 (14:11 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 7 Jan 2016 23:38:46 +0000 (18:38 -0500)
commit2860f20859454b38ce44e4e3377c036e67c20ae7
treee948551771c994833dafa9188e809ab140736fb9
parentd67b9ba9a1af18306aa68f16ee1b9bbc124da42e
st/mesa: add support for new mesa indirect draw interface

This shifts all indirect draws to go through the new function. If the
driver doesn't have support for multi draws, we break those up and
perform N draws. Otherwise, we pass everything through for just a single
draw call.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_context.h
src/mesa/state_tracker/st_draw.c