OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 24 Apr 2017 12:11:13 +0000 (13:11 +0100)
commit2cc119c35aef3ebee39307cb16f1fc8298be6395
treec65f9571990879a6626ecad9787a759a281c1b69
parent6abdbd8b1014f3e11885fa46716f1d2b3df9e5c2
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>
(cherry picked from commit 42d5465b9ba85b4918b9e6fb57994720e3c8a80b)
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