nouveau/nir: Move FS output stores to the end of the last block.
The nir_move/sink caused instructions to sink interleaved into the output stores at the end of the shader. nouveau's RA doesn't track liveness of FS outputs in registers after the export instruction, so they could end up overwritten. To work around it, after normal NIR move/sink, move the output stores back to the end of the shader. Fixes: b1fa2068 ("nouveau/nir: Enable nir_opt_move/sink.") Reviewed-by:M Henning <drawoc@darkrefraction.com> Reviewed-by:
Karol Herbst <kherbst@redhat.com> Part-of: <mesa/mesa!15949> (cherry picked from commit 3ddc5054)