From: Rob Clark Date: Mon, 24 Jun 2019 22:06:13 +0000 (-0700) Subject: freedreno/a5xx: fix batch leak in fd5 blitter path X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=927fb50727e6e6652c0e4ce300e098843ad12013;p=mesa.git 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 --- 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; }