freedreno/a5xx: fix batch leak in fd5 blitter path
authorRob Clark <robdclark@chromium.org>
Mon, 24 Jun 2019 22:06:13 +0000 (15:06 -0700)
committerRob Clark <robdclark@chromium.org>
Tue, 25 Jun 2019 01:43:20 +0000 (18:43 -0700)
Fixes: 3d198926a48 freedreno: use fd_bc_alloc_batch instead of fd_batch_create.
Signed-off-by: Rob Clark <robdclark@chromium.org>
src/gallium/drivers/freedreno/a5xx/fd5_blitter.c

index da76afdfa60d2cf24b49eba73a52b4b68f1a4711..8a829759cdcde387988692ab1a8993e6d5f50519 100644 (file)
@@ -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;
 }