mesa: only verify that enabled arrays have backing buffers
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 30 Nov 2016 22:04:06 +0000 (17:04 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 1 Dec 2016 11:35:13 +0000 (06:35 -0500)
commit7c16552f8dcc869b14cf7ef443a1b5de83b07973
tree201007ad220e7a25738263ddf9a5388f58c29bb1
parent51244859e368d9270a1f2f84aec6e97fbc1f5fac
mesa: only verify that enabled arrays have backing buffers

We were previously also verifying that no backing buffers were available
when an array wasn't enabled. This is has no basis in the spec, and it
causes GLupeN64 to fail as a result.

Fixes: c2e146f487 ("mesa: error out in indirect draw when vertex bindings mismatch")
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/main/api_validate.c