OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 7 Oct 2015 13:45:08 +0000 (14:45 +0100)
commit0ae914f65d84fb49a227f7584e84a9aa5e2f270f
tree616c53d541be53460f390c948642393876050377
parentb2c8b0e546e9245c959895c5765de791261e2cad
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>
(cherry picked from commit 1d8cba9b51b7a6e7dbf3f0d3f53b5c232fd0b5b2)
src/gallium/drivers/nouveau/nouveau_buffer.c