mesa: move glMultiDrawArrays to vbo and fix error handling
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 7 Apr 2017 16:20:34 +0000 (18:20 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 19 Apr 2017 06:10:19 +0000 (08:10 +0200)
commit42d5465b9ba85b4918b9e6fb57994720e3c8a80b
tree2e66ed87dc79407f27754fc643d00ca02b11fa9e
parent756e9ebbdd84018382908d3556973a62dbda09ca
mesa: move glMultiDrawArrays to vbo and fix error handling

When any count[i] is negative, we must skip all draws.

Moving to vbo makes the subsequent change easier.

v2:
- provide the function in all contexts, including GLES
- adjust validation accordingly to include the xfb check
v3:
- fix mix-up of pre- and post-xfb prim count (Nils Wallménius)

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mapi/glapi/gen/gl_API.xml
src/mesa/main/api_validate.c
src/mesa/main/api_validate.h
src/mesa/main/varray.c
src/mesa/vbo/vbo_exec_array.c
src/mesa/vbo/vbo_save_api.c