nir/spirv: Set a name on temporary variables
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 6 May 2015 19:36:31 +0000 (12:36 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 16 May 2015 18:16:34 +0000 (11:16 -0700)
src/glsl/nir/spirv_to_nir.c

index d4bad887dc11e61e3a5bef323d1f809d30cffb96..3bbf91453fdaaf1ed2edee9b1346162482bcd4c6 100644 (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);