mesa: reset offset/size to 0 when removing atomic binding
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 12 Feb 2016 18:49:08 +0000 (13:49 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 12 Feb 2016 23:22:49 +0000 (18:22 -0500)
commitf82ff6207ca98c153d5dc24319f86146d55ae230
tree5ac49016aa68039afa80ca11dac76979ecbcc4a3
parentb7e246d89afb2c6072fd65f6bf01a1921afc6d2a
mesa: reset offset/size to 0 when removing atomic binding

Similar to commit dd9d2963d6 (mesa: AtomicBufferBindings should be
initialized to zero.), we should reset these to zero when unbinding.
This fixes a number of dEQP failures due to cross-test pollution. The
tests properly unbound everything, but when querying the values again,
the expectation was that they would be 0.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/main/bufferobj.c