nv50,nvc0: remove IDX from bufctx immediately, to avoid conflicts with clear
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 24 Jun 2017 17:17:08 +0000 (13:17 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 27 Jun 2017 00:23:04 +0000 (20:23 -0400)
commitc12f8305a8ae4fd5d78a9ab8bbda790a711d5bed
tree20a14a243f8603729cbbf5ae6665e857e5f1bfc6
parent8c02ee4a8b0bea5dda3ced341dce81f340457c95
nv50,nvc0: remove IDX from bufctx immediately, to avoid conflicts with clear

The idxbuf could linger, and when a clear happened, which also uses the
3d bufctx, we could get an error trying to access it.

This fixes spurious crashes/errors in CTS tests.

Fixes: 61d8f3387d ("nv50,nvc0: clear index buffer bufctx bin unconditionally")
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/nouveau/nv50/nv50_vbo.c
src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c