nir: Export nir_io_add_intrinsic_xfb_info
This is useful for drivers which wish to consume XFB information. These hopefully-uncontroversial hunks are extracted from the much more controversial "st,nir,radeons: Move nir_lower_io_passes to si_nir_lower_io" by Jason. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15720>
This commit is contained in:
parent
5c79d649af
commit
dc2d8a643f
|
@ -4615,6 +4615,8 @@ bool nir_io_add_const_offset_to_base(nir_shader *nir, nir_variable_mode modes);
|
|||
void
|
||||
nir_lower_io_passes(nir_shader *nir);
|
||||
|
||||
bool nir_io_add_intrinsic_xfb_info(nir_shader *nir);
|
||||
|
||||
bool
|
||||
nir_lower_vars_to_explicit_types(nir_shader *shader,
|
||||
nir_variable_mode modes,
|
||||
|
|
|
@ -2943,8 +2943,8 @@ nir_lower_color_inputs(nir_shader *nir)
|
|||
return progress;
|
||||
}
|
||||
|
||||
static bool
|
||||
nir_add_xfb_info(nir_shader *nir)
|
||||
bool
|
||||
nir_io_add_intrinsic_xfb_info(nir_shader *nir)
|
||||
{
|
||||
nir_function_impl *impl = nir_shader_get_entrypoint(nir);
|
||||
bool progress = false;
|
||||
|
@ -3071,7 +3071,7 @@ nir_lower_io_passes(nir_shader *nir)
|
|||
nir_var_shader_in | nir_var_shader_out, NULL);
|
||||
|
||||
if (nir->xfb_info)
|
||||
NIR_PASS_V(nir, nir_add_xfb_info);
|
||||
NIR_PASS_V(nir, nir_io_add_intrinsic_xfb_info);
|
||||
|
||||
nir->info.io_lowered = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue