Commit 4cdabcc0 authored by Jason Ekstrand's avatar Jason Ekstrand
Browse files

nir/tex_instr_create: Initialize all 4 sources



This helps a lot with things like lowering passes that may need to add
sources.
Reviewed-by: default avatarConnor Abbott <cwabbott0@gmail.com>
parent 62ac0ee8
......@@ -461,7 +461,7 @@ nir_tex_instr_create(void *mem_ctx, unsigned num_srcs)
dest_init(&instr->dest);
instr->num_srcs = num_srcs;
for (unsigned i = 0; i < num_srcs; i++)
for (unsigned i = 0; i < 4; i++)
src_init(&instr->src[i]);
instr->has_predicate = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment