mesa: throw error if bufSize negative in GetSynciv on OpenGL ES
authorTapani Pälli <tapani.palli@intel.com>
Fri, 7 Oct 2016 05:41:15 +0000 (08:41 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 10 Oct 2016 04:29:31 +0000 (07:29 +0300)
commit2d7e0f35c54f49c3280eea308a652253cb3bde46
tree19410d37ace5de1a96bd642a212e9c82c9b10786
parentd997d5c0c9e9c70a95f0c84255feec8e2963ef20
mesa: throw error if bufSize negative in GetSynciv on OpenGL ES

Fixes following dEQP tests:

   dEQP-GLES31.functional.debug.negative_coverage.callbacks.state.get_synciv
   dEQP-GLES31.functional.debug.negative_coverage.get_error.state.get_synciv
   dEQP-GLES31.functional.debug.negative_coverage.log.state.get_synciv

v2: drop _mesa_is_gles check (Kenneth)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98133
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/syncobj.c