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:
@@ -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));
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user