nv50,nvc0: clear index buffer bufctx bin unconditionally
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 20 May 2017 08:18:20 +0000 (04:18 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 20 May 2017 08:20:11 +0000 (04:20 -0400)
commit61d8f3387d1f2b724c833418968ba407fc294032
tree1099babdff9d86cb17b83fc4934a8ec112bb5224
parent85d21863266ce192a3368ef58f5a17a26ef79c3b
nv50,nvc0: clear index buffer bufctx bin unconditionally

The previous condition was to clear it out if it had previously been
set, not what's in the current draw. That information is gone now, so
just clear it unconditionally.

Fixes: 330d0607e ("gallium: remove pipe_index_buffer and set_index_buffer")
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nv50/nv50_vbo.c
src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c