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>
Mon, 31 Aug 2015 23:58:20 +0000 (16:58 -0700)
src/glsl/nir/spirv_to_nir.c

index 3d2a26c90b04e0c92a1f80526058ca6edeea7c48..b5130f339c46bf4aecc1ea4eedb1d9c285e59a41 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);