diff options
author | Karol Herbst <[email protected]> | 2019-01-16 00:05:04 +0100 |
---|---|---|
committer | Karol Herbst <[email protected]> | 2019-01-19 20:01:41 +0100 |
commit | 9b24028426702f8d4c8c1f563ff9d32b99532357 (patch) | |
tree | daa3cb7bd7cac479cfd6f734e2c1b2b211a085da /src/compiler/glsl | |
parent | e5daef95877047d6c820953666dc570237c988db (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/glsl')
-rw-r--r-- | src/compiler/glsl/glsl_to_nir.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp index f04e0d59ab1..7a96957f27e 100644 --- a/src/compiler/glsl/glsl_to_nir.cpp +++ b/src/compiler/glsl/glsl_to_nir.cpp @@ -326,12 +326,12 @@ nir_visitor::visit(ir_variable *ir) if (is_global) var->data.mode = nir_var_shader_temp; else - var->data.mode = nir_var_function; + var->data.mode = nir_var_function_temp; break; case ir_var_function_in: case ir_var_const_in: - var->data.mode = nir_var_function; + var->data.mode = nir_var_function_temp; break; case ir_var_shader_in: @@ -460,7 +460,7 @@ nir_visitor::visit(ir_variable *ir) var->interface_type = ir->get_interface_type(); - if (var->data.mode == nir_var_function) + if (var->data.mode == nir_var_function_temp) nir_function_impl_add_variable(impl, var); else nir_shader_add_variable(shader, var); @@ -654,7 +654,7 @@ nir_visitor::visit(ir_return *ir) if (ir->value != NULL) { nir_deref_instr *ret_deref = nir_build_deref_cast(&b, nir_load_param(&b, 0), - nir_var_function, ir->value->type, 0); + nir_var_function_temp, ir->value->type, 0); nir_ssa_def *val = evaluate_rvalue(ir->value); nir_store_deref(&b, ret_deref, val, ~0); @@ -2261,7 +2261,7 @@ nir_visitor::visit(ir_dereference_variable *ir) } this->deref = nir_build_deref_cast(&b, nir_load_param(&b, i), - nir_var_function, ir->type, 0); + nir_var_function_temp, ir->type, 0); return; } |