X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fglsl%2Fnir%2Fnir_lower_outputs_to_temporaries.c;h=4ea5fd4f66b4f3a274f315dcccec9f0a5de1eb46;hb=aecbc93f2d1ff9de4e03a2b216e86dcb9a4ce414;hp=b730cad00208222450df21d8a623e8a02019d80c;hpb=1dbe4af9c9e318525fc082b542b93fb7f1e5efba;p=mesa.git diff --git a/src/glsl/nir/nir_lower_outputs_to_temporaries.c b/src/glsl/nir/nir_lower_outputs_to_temporaries.c index b730cad0020..4ea5fd4f66b 100644 --- a/src/glsl/nir/nir_lower_outputs_to_temporaries.c +++ b/src/glsl/nir/nir_lower_outputs_to_temporaries.c @@ -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;