mesa: simplify and optimise vertex bindings tracking
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 6 Apr 2017 04:47:34 +0000 (14:47 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sat, 8 Apr 2017 01:18:50 +0000 (11:18 +1000)
commit9d69416a7ee041ca45998b2e46dac3e476fb41d2
tree247e358265dda8af9f1d9fd371e389b10c7ff95e
parentbfabef0e7104dc4043a74ef44e71ecc7636cfe12
mesa: simplify and optimise vertex bindings tracking

We only need to update it if something changes. Also
_mesa_bind_vertex_buffer() will update the mask when binding to a
NULL or default buffer so no need to do that update here.

Reviewed-by: Juan A. Suarez Romero <jasuarez@igalia.com>
src/mesa/main/varray.c