mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 09:00:08 +01:00
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: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
parent
62ac0ee804
commit
4cdabcc0fa
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue