mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
panfrost: Flush output after disassembling shaders
Fixes text printed to stderr appearing in the middle of disassembly when piping stdout and stderr to the same place. Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10088>
This commit is contained in:
parent
81513085e5
commit
51a812bb60
2 changed files with 2 additions and 0 deletions
|
|
@ -3110,6 +3110,7 @@ bifrost_compile_shader_nir(nir_shader *nir,
|
|||
if (bifrost_debug & BIFROST_DBG_SHADERS && !skip_internal) {
|
||||
disassemble_bifrost(stdout, binary->data, binary->size,
|
||||
bifrost_debug & BIFROST_DBG_VERBOSE);
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
/* Pad the shader with enough zero bytes to trick the prefetcher,
|
||||
|
|
|
|||
|
|
@ -3197,6 +3197,7 @@ midgard_compile_shader_nir(nir_shader *nir,
|
|||
if ((midgard_debug & MIDGARD_DBG_SHADERS) && !nir->info.internal) {
|
||||
disassemble_midgard(stdout, binary->data,
|
||||
binary->size, inputs->gpu_id);
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
if ((midgard_debug & MIDGARD_DBG_SHADERDB || inputs->shaderdb) &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue