mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
nir/spirv: Set a name on temporary variables
This commit is contained in:
parent
6fc7911d15
commit
4a63761e1d
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue