projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bef4df
)
util/u_log: flush auto loggers before starting a new page
author
Nicolai Hähnle
<nicolai.haehnle@amd.com>
Tue, 26 Feb 2019 15:22:02 +0000
(16:22 +0100)
committer
Nicolai Hähnle
<nicolai.haehnle@amd.com>
Thu, 25 Apr 2019 10:35:09 +0000
(12:35 +0200)
Without this, command stream dumps of radeonsi may misleadingly end up
in a later page.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_log.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_log.c
b/src/gallium/auxiliary/util/u_log.c
index 90fd24ca394131a1dfdc3d5879ddd3f8efd1c3c6..095421edd064a5de13342a0e9d40414d8a03bd40 100644
(file)
--- 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;