radeonsi: check that we don't leak fine.buf references

Just as an added precaution.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Nicolai Hähnle 2017-11-14 09:37:38 +01:00
parent 377a062321
commit e52e8326d9
1 changed files with 2 additions and 0 deletions

View File

@ -445,12 +445,14 @@ static void si_flush_from_st(struct pipe_context *ctx,
}
multi_fence->fine = fine;
fine.buf = NULL;
if (flags & TC_FLUSH_ASYNC) {
util_queue_fence_signal(&multi_fence->ready);
tc_unflushed_batch_token_reference(&multi_fence->tc_token, NULL);
}
}
assert(!fine.buf);
finish:
if (!(flags & PIPE_FLUSH_DEFERRED)) {
if (rctx->dma.cs)