summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-05-06 12:36:31 -0700
committerJason Ekstrand <[email protected]>2015-08-31 16:58:20 -0700
commit4a63761e1d7970f34be19b02b98a0be1a6f1af2c (patch)
treefc2a0e30a85cbe30f3920211fe3b464043ebee9e
parent6fc7911d1565214c9921cfc9da3df37718839184 (diff)
nir/spirv: Set a name on temporary variables
-rw-r--r--src/glsl/nir/spirv_to_nir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/nir/spirv_to_nir.c b/src/glsl/nir/spirv_to_nir.c
index 3d2a26c90b0..b5130f339c4 100644
--- a/src/glsl/nir/spirv_to_nir.c
+++ b/src/glsl/nir/spirv_to_nir.c
@@ -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);