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