Commit 55b5058e authored by Jason Ekstrand's avatar Jason Ekstrand
Browse files

nir: Rename lower_variables to lower_vars_to_ssa



The original name wasn't particularly descriptive.  This one indicates that
it actually gives you SSA values as opposed to the old pass which lowered
variables to registers.
Reviewed-by: default avatarConnor Abbott <cwabbott0@gmail.com>
parent 4aa6162f
......@@ -31,7 +31,7 @@ NIR_FILES = \
$(GLSL_SRCDIR)/nir/nir_lower_samplers.cpp \
$(GLSL_SRCDIR)/nir/nir_lower_system_values.c \
$(GLSL_SRCDIR)/nir/nir_lower_to_source_mods.c \
$(GLSL_SRCDIR)/nir/nir_lower_variables.c \
$(GLSL_SRCDIR)/nir/nir_lower_vars_to_ssa.c \
$(GLSL_SRCDIR)/nir/nir_lower_vec_to_movs.c \
$(GLSL_SRCDIR)/nir/nir_metadata.c \
$(GLSL_SRCDIR)/nir/nir_opcodes.c \
......
......@@ -1467,7 +1467,7 @@ void nir_lower_locals_to_regs(nir_shader *shader);
void nir_lower_io(nir_shader *shader);
void nir_lower_variables(nir_shader *shader);
void nir_lower_vars_to_ssa(nir_shader *shader);
void nir_remove_dead_variables(nir_shader *shader);
......
......@@ -1131,7 +1131,7 @@ insert_phi_nodes(struct lower_variables_state *state)
* with SSA definitions and SSA uses.
*/
static bool
nir_lower_variables_impl(nir_function_impl *impl)
nir_lower_vars_to_ssa_impl(nir_function_impl *impl)
{
struct lower_variables_state state;
......@@ -1206,10 +1206,10 @@ nir_lower_variables_impl(nir_function_impl *impl)
}
void
nir_lower_variables(nir_shader *shader)
nir_lower_vars_to_ssa(nir_shader *shader)
{
nir_foreach_overload(shader, overload) {
if (overload->impl)
nir_lower_variables_impl(overload->impl);
nir_lower_vars_to_ssa_impl(overload->impl);
}
}
......@@ -43,7 +43,7 @@ fs_visitor::emit_nir_code()
bool progress;
do {
progress = false;
nir_lower_variables(nir);
nir_lower_vars_to_ssa(nir);
nir_validate_shader(nir);
progress |= nir_copy_prop(nir);
nir_validate_shader(nir);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment