summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2019-02-26 16:22:02 +0100
committerNicolai Hähnle <[email protected]>2019-04-25 12:35:09 +0200
commit563faa3903f785a850b4b4ccb6c6a0c48a995a38 (patch)
treea5ef2e8c2c289714c14c0d33551e3abe5640836b /src/gallium/auxiliary
parent8bef4df196fbb0fad7f3bd6048f71dbc38ebceb3 (diff)
util/u_log: flush auto loggers before starting a new page
Without this, command stream dumps of radeonsi may misleadingly end up in a later page. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_log.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_log.c b/src/gallium/auxiliary/util/u_log.c
index 90fd24ca394..095421edd06 100644
--- a/src/gallium/auxiliary/util/u_log.c
+++ b/src/gallium/auxiliary/util/u_log.c
@@ -187,6 +187,8 @@ out_of_memory:
void
u_log_new_page_print(struct u_log_context *ctx, FILE *stream)
{
+ u_log_flush(ctx);
+
if (ctx->cur) {
u_log_page_print(ctx->cur, stream);
u_log_page_destroy(ctx->cur);
@@ -202,6 +204,8 @@ u_log_new_page_print(struct u_log_context *ctx, FILE *stream)
struct u_log_page *
u_log_new_page(struct u_log_context *ctx)
{
+ u_log_flush(ctx);
+
struct u_log_page *page = ctx->cur;
ctx->cur = NULL;
return page;