mesa: Move buffers-unmapped earlier in check_valid_to_render().
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 15 Sep 2016 09:10:24 +0000 (02:10 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 17 Sep 2016 02:42:56 +0000 (19:42 -0700)
commiteaacb278128ca64b170285feae58c89d16bff8a1
tree08b56915db76bc80678e96d21ac11115eb0822e3
parent6b0ba02cae1526d6e6671a9ff620fd3bd7d4d032
mesa: Move buffers-unmapped earlier in check_valid_to_render().

This needs to be above the switch on API, as that can return true
(valid to render) before this error check even had a chance to run.

Fixes ESEXT-CTS.draw_elements_base_vertex_tests.invalid_mapped_bos,
which worked before commit 72f1566f90c434c7752d8405193eec68d6743246.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
src/mesa/main/api_validate.c