radeonsi: update nir xfb info after medium io lowering

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19489>
This commit is contained in:
Qiang Yu
2022-12-04 21:47:16 +08:00
committed by Marge Bot
parent 49cfbe1fed
commit db2497f205
@@ -23,6 +23,7 @@
*/
#include "nir_builder.h"
#include "nir_xfb_info.h"
#include "si_pipe.h"
@@ -372,6 +373,10 @@ char *si_finalize_nir(struct pipe_screen *screen, void *nirptr)
si_lower_nir(sscreen, nir);
nir_shader_gather_info(nir, nir_shader_get_entrypoint(nir));
/* Update xfb info after we did medium io lowering. */
if (nir->xfb_info && nir->info.outputs_written_16bit)
nir_gather_xfb_info_from_intrinsics(nir);
if (sscreen->options.inline_uniforms)
nir_find_inlinable_uniforms(nir);