summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir.h4
-rw-r--r--src/compiler/nir/nir_lower_io_to_temporaries.c (renamed from src/compiler/nir/nir_lower_outputs_to_temporaries.c)8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 68f948e83a5..5410f0b8020 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -2279,8 +2279,8 @@ bool nir_lower_indirect_derefs(nir_shader *shader, nir_variable_mode modes);
bool nir_lower_locals_to_regs(nir_shader *shader);
-void nir_lower_outputs_to_temporaries(nir_shader *shader,
- nir_function *entrypoint);
+void nir_lower_io_to_temporaries(nir_shader *shader, nir_function *entrypoint);
+
void nir_shader_gather_info(nir_shader *shader, nir_function_impl *entrypoint);
void nir_assign_var_locations(struct exec_list *var_list,
diff --git a/src/compiler/nir/nir_lower_outputs_to_temporaries.c b/src/compiler/nir/nir_lower_io_to_temporaries.c
index 0dfb7b0e718..bf16aecfcf1 100644
--- a/src/compiler/nir/nir_lower_outputs_to_temporaries.c
+++ b/src/compiler/nir/nir_lower_io_to_temporaries.c
@@ -29,13 +29,13 @@
#include "nir.h"
-struct lower_outputs_state {
+struct lower_io_state {
nir_shader *shader;
struct exec_list old_outputs;
};
static void
-emit_output_copies(nir_cursor cursor, struct lower_outputs_state *state)
+emit_output_copies(nir_cursor cursor, struct lower_io_state *state)
{
assert(exec_list_length(&state->shader->outputs) ==
exec_list_length(&state->old_outputs));
@@ -55,9 +55,9 @@ emit_output_copies(nir_cursor cursor, struct lower_outputs_state *state)
}
void
-nir_lower_outputs_to_temporaries(nir_shader *shader, nir_function *entrypoint)
+nir_lower_io_to_temporaries(nir_shader *shader, nir_function *entrypoint)
{
- struct lower_outputs_state state;
+ struct lower_io_state state;
if (shader->stage == MESA_SHADER_TESS_CTRL)
return;