nir: allow redirection of shaders printed by NIR_PRINT

Marcin Ślusarz requested to merge mslusarz/mesa:nir_print_file into main

The game I want to use NIR_PRINT with redirects stdout (but does this in so awesome way that it hangs when it sees too much data).

Unfortunately, apitrace makes the game crash, so I can't take the trace and NIR_PRINT it on replay.

Merge request reports