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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user