vbo: Return INVALID_OPERATION during draw with a mapped buffer
authorJordan Justen <jordan.l.justen@intel.com>
Mon, 25 Apr 2016 23:09:21 +0000 (16:09 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 27 Apr 2016 21:30:06 +0000 (14:30 -0700)
commitaaaa22c775f484922ccac705de41dd892e2aff4d
treea294f2c1c43f8e3963be904e959c60d11fa34792
parent28d0bc72fbce26fd986b0e3f3a1f346a9d6eba00
vbo: Return INVALID_OPERATION during draw with a mapped buffer

Fixes the OpenGLES 3.1 CTS:
 * ESEXT-CTS.draw_elements_base_vertex_tests.invalid_mapped_bos

Because this is triggering the error message after the normal API
validation phase, we don't have the API function name available, and
therefore we generate an error message without the draw call name:

Mesa: User error: GL_INVALID_OPERATION in draw call (vertex buffers are mapped)

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95142
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/vbo/vbo.h
src/mesa/vbo/vbo_exec_array.c