summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/drivers/freedreno/freedreno_blitter.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-09-22 01:35:23 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-09-22 01:35:23 +0000
commit27e7bb02bd0f89f96d9e3b402b46c2c97ee4defe (patch)
tree274247cd9317896d1f4f7b12d469b85dbbae9205 /lib/mesa/src/gallium/drivers/freedreno/freedreno_blitter.c
parent294c26e88dc461cbb485be73fd6624ec386b4f0b (diff)
Import Mesa 20.0.8
Diffstat (limited to 'lib/mesa/src/gallium/drivers/freedreno/freedreno_blitter.c')
-rw-r--r--lib/mesa/src/gallium/drivers/freedreno/freedreno_blitter.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/mesa/src/gallium/drivers/freedreno/freedreno_blitter.c b/lib/mesa/src/gallium/drivers/freedreno/freedreno_blitter.c
index 237e86f3a..ca6cd8ebd 100644
--- a/lib/mesa/src/gallium/drivers/freedreno/freedreno_blitter.c
+++ b/lib/mesa/src/gallium/drivers/freedreno/freedreno_blitter.c
@@ -114,13 +114,15 @@ fd_blitter_pipe_begin(struct fd_context *ctx, bool render_cond, bool discard,
if (ctx->batch)
fd_batch_set_stage(ctx->batch, stage);
- ctx->in_discard_blit = discard;
+ ctx->in_blit = discard;
}
static void
fd_blitter_pipe_end(struct fd_context *ctx)
{
- ctx->in_discard_blit = false;
+ if (ctx->batch)
+ fd_batch_set_stage(ctx->batch, FD_STAGE_NULL);
+ ctx->in_blit = false;
}
bool