summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-11-14 09:37:38 +0100
committerNicolai Hähnle <[email protected]>2017-11-28 09:34:43 +0100
commite52e8326d9131670880d4b6fa285d49c7e1d7fee (patch)
tree5311ab77c7dbb0a15c924d69d6db4e44d891b02d
parent377a0623215d052a04cfdd0967d082fb27399421 (diff)
radeonsi: check that we don't leak fine.buf references
Just as an added precaution. Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r--src/gallium/drivers/radeonsi/si_fence.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_fence.c b/src/gallium/drivers/radeonsi/si_fence.c
index b835ed649ee..61105217caa 100644
--- a/src/gallium/drivers/radeonsi/si_fence.c
+++ b/src/gallium/drivers/radeonsi/si_fence.c
@@ -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)