OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 14 Dec 2016 19:03:11 +0000 (19:03 +0000)
commit69a4fa0c357be8dd36ae1464f43cd8ab8b4ad46e
treee4d4af567e6d331f79df8728cfd13a0bacd19d32
parent403d106c9c5eed481cb58ee0104e211c3d8f44f8
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>
(cherry picked from commit 7c16552f8dcc869b14cf7ef443a1b5de83b07973)
src/mesa/main/api_validate.c