pan/decode: fflush buffers after dumping and before aborts

Otherwise trace files or other files being written (dEQP TestResults?)
might be truncated.

Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17371>
This commit is contained in:
Icecream95
2022-07-07 11:51:49 +12:00
committed by Marge Bot
parent bcd85a74e8
commit f7da4eade4
2 changed files with 3 additions and 0 deletions

View File

@@ -1413,6 +1413,7 @@ GENX(pandecode_abort_on_fault)(mali_ptr jc_gpu_va)
/* Ensure the job is marked COMPLETE */
if (h.exception_status != 0x1) {
fprintf(stderr, "Incomplete job or timeout\n");
fflush(NULL);
abort();
}
} while ((jc_gpu_va = next_job));

View File

@@ -262,6 +262,8 @@ pandecode_dump_mappings(void)
pan_hexdump(pandecode_dump_stream, it->addr, it->length, false);
fprintf(pandecode_dump_stream, "\n");
}
fflush(pandecode_dump_stream);
}
void pandecode_abort_on_fault_v4(mali_ptr jc_gpu_va);