From: Nicolai Hähnle Date: Mon, 27 Aug 2018 13:24:07 +0000 (+0200) Subject: ddebug: always flush when requested, even when hang detection is disabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7230cb8f2b9cfed6510db4d44a9ee20dbb92c8b0;p=mesa.git ddebug: always flush when requested, even when hang detection is disabled Reviewed-by: Marek Olšák --- diff --git a/src/gallium/auxiliary/driver_ddebug/dd_draw.c b/src/gallium/auxiliary/driver_ddebug/dd_draw.c index a930299ebb7..f5b94356119 100644 --- a/src/gallium/auxiliary/driver_ddebug/dd_draw.c +++ b/src/gallium/auxiliary/driver_ddebug/dd_draw.c @@ -1111,6 +1111,8 @@ dd_before_draw(struct dd_context *dctx, struct dd_draw_record *record) pipe->flush(pipe, &record->top_of_pipe, PIPE_FLUSH_DEFERRED | PIPE_FLUSH_TOP_OF_PIPE); } + } else if (dscreen->flush_always && dctx->num_draw_calls >= dscreen->skip_count) { + pipe->flush(pipe, NULL, 0); } mtx_lock(&dctx->mutex);