mesa/glthread: fallback to sync if count validation fails
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 29 Mar 2017 05:30:59 +0000 (16:30 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 29 Mar 2017 21:23:00 +0000 (08:23 +1100)
commit16debc652a4f054a9c74e9229b98dec1746d292b
tree6dd25b9366f3eb502a3c2db339641fa3582a97c7
parent18f4c93b02cbebd45e51c700368a3833ab0f5e95
mesa/glthread: fallback to sync if count validation fails

The old code would sync and then throw a cryptic error message.
There is no need for a custom error, we can just fallback to
the real function and have it do proper validation.

Fixes piglit test:
glsl-uniform-out-of-bounds

Which was returning the wrong error code.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mapi/glapi/gen/gl_marshal.py