nir/print: print symbolic names from shader-enum
[mesa.git] / src / glsl / nir / nir_lower_outputs_to_temporaries.c
index b730cad00208222450df21d8a623e8a02019d80c..4ea5fd4f66b4f3a274f315dcccec9f0a5de1eb46 100644 (file)
@@ -91,6 +91,9 @@ nir_lower_outputs_to_temporaries(nir_shader *shader)
       /* The orignal is now the temporary */
       nir_variable *temp = var;
 
+      /* Reparent the name to the new variable */
+      ralloc_steal(output, output->name);
+
       /* Give the output a new name with @out-temp appended */
       temp->name = ralloc_asprintf(var, "%s@out-temp", output->name);
       temp->data.mode = nir_var_global;