summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_draw.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2018-09-06 07:52:01 -0400
committerRob Clark <[email protected]>2018-09-27 15:25:49 -0400
commita7fa44cd33378c6058b8069e6edcae1963c96bd3 (patch)
treec8235ee341de7a02a0bc420b9e31dfebb4beed14 /src/gallium/drivers/freedreno/freedreno_draw.c
parent83c5c026ee66ccdcc2e31c1b54c1b70e4309092e (diff)
freedreno: fix FD_MESA_DEBUG=flush
The logic to force a flush every draw was short-circuited with newer kernels. Also it should apply to clears as well. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_draw.c')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_draw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_draw.c b/src/gallium/drivers/freedreno/freedreno_draw.c
index f55905e7bfe..0f382e61ca4 100644
--- a/src/gallium/drivers/freedreno/freedreno_draw.c
+++ b/src/gallium/drivers/freedreno/freedreno_draw.c
@@ -429,6 +429,8 @@ fd_clear(struct pipe_context *pctx, unsigned buffers,
if (fallback) {
fd_blitter_clear(pctx, buffers, color, depth, stencil);
}
+
+ fd_batch_check_size(batch);
}
static void