aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/nir/nir.c
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/glsl/nir/nir.c')
-rw-r--r--mesalib/src/glsl/nir/nir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesalib/src/glsl/nir/nir.c b/mesalib/src/glsl/nir/nir.c
index 5b0e4bc50..ab57fd4e2 100644
--- a/mesalib/src/glsl/nir/nir.c
+++ b/mesalib/src/glsl/nir/nir.c
@@ -63,6 +63,7 @@ reg_create(void *mem_ctx, struct exec_list *list)
{
nir_register *reg = ralloc(mem_ctx, nir_register);
+ reg->parent_instr = NULL;
reg->uses = _mesa_set_create(mem_ctx, _mesa_hash_pointer,
_mesa_key_pointer_equal);
reg->defs = _mesa_set_create(mem_ctx, _mesa_hash_pointer,