freedreno: fix FD_MESA_DEBUG=inorder

Fixes: 2c07e03b79 ("freedreno: allow ctx->batch to be NULL")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4071>
(cherry picked from commit b3efa2a4da)
This commit is contained in:
Rob Clark 2020-03-01 14:16:59 -08:00 committed by Eric Engestrom
parent 6b0033dc30
commit 4fa692872b
2 changed files with 2 additions and 2 deletions

View file

@ -103,7 +103,7 @@
"description": "freedreno: fix FD_MESA_DEBUG=inorder",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "2c07e03b792d57ae807a6953f0d8ff5f4bcdffd0"
},

View file

@ -252,7 +252,7 @@ fd_set_framebuffer_state(struct pipe_context *pctx,
}
fd_batch_reference(&old_batch, NULL);
} else {
} else if (ctx->batch) {
DBG("%d: cbufs[0]=%p, zsbuf=%p", ctx->batch->needs_flush,
framebuffer->cbufs[0], framebuffer->zsbuf);
fd_batch_flush(ctx->batch);