mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
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:
parent
bcd85a74e8
commit
f7da4eade4
2 changed files with 3 additions and 0 deletions
|
|
@ -1413,6 +1413,7 @@ GENX(pandecode_abort_on_fault)(mali_ptr jc_gpu_va)
|
||||||
/* Ensure the job is marked COMPLETE */
|
/* Ensure the job is marked COMPLETE */
|
||||||
if (h.exception_status != 0x1) {
|
if (h.exception_status != 0x1) {
|
||||||
fprintf(stderr, "Incomplete job or timeout\n");
|
fprintf(stderr, "Incomplete job or timeout\n");
|
||||||
|
fflush(NULL);
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
} while ((jc_gpu_va = next_job));
|
} while ((jc_gpu_va = next_job));
|
||||||
|
|
|
||||||
|
|
@ -262,6 +262,8 @@ pandecode_dump_mappings(void)
|
||||||
pan_hexdump(pandecode_dump_stream, it->addr, it->length, false);
|
pan_hexdump(pandecode_dump_stream, it->addr, it->length, false);
|
||||||
fprintf(pandecode_dump_stream, "\n");
|
fprintf(pandecode_dump_stream, "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fflush(pandecode_dump_stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
void pandecode_abort_on_fault_v4(mali_ptr jc_gpu_va);
|
void pandecode_abort_on_fault_v4(mali_ptr jc_gpu_va);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue