nir/spirv: Set a name on temporary variables

This commit is contained in:
Jason Ekstrand 2015-05-06 12:36:31 -07:00
parent 6fc7911d15
commit 4a63761e1d
1 changed files with 1 additions and 0 deletions

View File

@ -595,6 +595,7 @@ vtn_handle_variables(struct vtn_builder *b, SpvOp opcode,
nir_variable *const_tmp = rzalloc(b->shader, nir_variable);
const_tmp->type = dest_type;
const_tmp->name = "const_temp";
const_tmp->data.mode = nir_var_local;
const_tmp->data.read_only = true;
exec_list_push_tail(&b->impl->locals, &const_tmp->node);