summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir.c
diff options
context:
space:
mode:
authorKarol Herbst <[email protected]>2019-01-16 00:05:04 +0100
committerKarol Herbst <[email protected]>2019-01-19 20:01:41 +0100
commit9b24028426702f8d4c8c1f563ff9d32b99532357 (patch)
treedaa3cb7bd7cac479cfd6f734e2c1b2b211a085da /src/compiler/nir/nir.c
parente5daef95877047d6c820953666dc570237c988db (diff)
nir: rename nir_var_function to nir_var_function_temp
Signed-off-by: Karol Herbst <[email protected]> Acked-by: Jason Ekstrand <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.c')
-rw-r--r--src/compiler/nir/nir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c
index 8a92be9f225..57ae2afc2e7 100644
--- a/src/compiler/nir/nir.c
+++ b/src/compiler/nir/nir.c
@@ -125,7 +125,7 @@ nir_shader_add_variable(nir_shader *shader, nir_variable *var)
assert(!"invalid mode");
break;
- case nir_var_function:
+ case nir_var_function_temp:
assert(!"nir_shader_add_variable cannot be used for local variables");
break;
@@ -189,7 +189,7 @@ nir_local_variable_create(nir_function_impl *impl,
nir_variable *var = rzalloc(impl->function->shader, nir_variable);
var->name = ralloc_strdup(var, name);
var->type = type;
- var->data.mode = nir_var_function;
+ var->data.mode = nir_var_function_temp;
nir_function_impl_add_variable(impl, var);