From 927fb50727e6e6652c0e4ce300e098843ad12013 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Mon, 24 Jun 2019 15:06:13 -0700 Subject: [PATCH] freedreno/a5xx: fix batch leak in fd5 blitter path Fixes: 3d198926a48 freedreno: use fd_bc_alloc_batch instead of fd_batch_create. Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/a5xx/fd5_blitter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_blitter.c b/src/gallium/drivers/freedreno/a5xx/fd5_blitter.c index da76afdfa60..8a829759cdc 100644 --- a/src/gallium/drivers/freedreno/a5xx/fd5_blitter.c +++ b/src/gallium/drivers/freedreno/a5xx/fd5_blitter.c @@ -482,6 +482,7 @@ fd5_blitter_blit(struct fd_context *ctx, const struct pipe_blit_info *info) batch->needs_flush = true; fd_batch_flush(batch, false, false); + fd_batch_reference(&batch, NULL); return true; } -- 2.30.2