diff options
author | Nicolai Hähnle <[email protected]> | 2018-08-27 15:24:07 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2018-12-19 11:59:18 +0100 |
commit | 7230cb8f2b9cfed6510db4d44a9ee20dbb92c8b0 (patch) | |
tree | 90b738e2264d943c44f4020537c3cd53b58053db /src/gallium/auxiliary | |
parent | 539fdc49f1ef02f5a40c486fa940b3bfacb44a48 (diff) |
ddebug: always flush when requested, even when hang detection is disabled
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/driver_ddebug/dd_draw.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |