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:
Icecream95 2021-04-07 23:51:01 +12:00 committed by Marge Bot
parent 81513085e5
commit 51a812bb60
2 changed files with 2 additions and 0 deletions

View file

@ -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,

View file

@ -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) &&