ddebug: always flush when requested, even when hang detection is disabled
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 27 Aug 2018 13:24:07 +0000 (15:24 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 19 Dec 2018 10:59:18 +0000 (11:59 +0100)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/driver_ddebug/dd_draw.c

index a930299ebb74e2e098add6389507263375827b26..f5b9435611999281099e0800a174a42d223795d9 100644 (file)
@@ -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);