nouveau: wait to unref the transfer's bo until it's no longer used
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 28 Sep 2015 19:18:08 +0000 (15:18 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 28 Sep 2015 21:28:54 +0000 (17:28 -0400)
commit1d8cba9b51b7a6e7dbf3f0d3f53b5c232fd0b5b2
tree12d44ef37d86c115d1ceedb44052c405d5a74f3d
parent3a6b9a7830c3df14ffcfbbf57c82ea08bd59ef04
nouveau: wait to unref the transfer's bo until it's no longer used

The bo will often come from a slab in which case it doesn't matter. But
for larger allocations this will be in its own bo, and we have to make
sure to wait until it's no longer used in order for it to be freed.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
Tested-by: Marcin Ĺšlusarz <marcin.slusarz@gmail.com>
src/gallium/drivers/nouveau/nouveau_buffer.c