summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/spirv_to_nir.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/nir/spirv_to_nir.c')
-rw-r--r--src/glsl/nir/spirv_to_nir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/nir/spirv_to_nir.c b/src/glsl/nir/spirv_to_nir.c
index a0a75040771..e0f280ceaae 100644
--- a/src/glsl/nir/spirv_to_nir.c
+++ b/src/glsl/nir/spirv_to_nir.c
@@ -1277,7 +1277,7 @@ vtn_handle_alu(struct vtn_builder *b, SpvOp opcode,
{
struct vtn_value *val = vtn_push_value(b, w[2], vtn_value_type_ssa);
val->type = vtn_value(b, w[1], vtn_value_type_type)->type;
- val->ssa->type = val->type;
+ val->ssa = vtn_create_ssa_value(b, val->type);
/* Collect the various SSA sources */
unsigned num_inputs = count - 3;