diff options
Diffstat (limited to 'src/glsl/nir/nir.c')
-rw-r--r-- | src/glsl/nir/nir.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c index e9035d449c3..b15440b0855 100644 --- a/src/glsl/nir/nir.c +++ b/src/glsl/nir/nir.c @@ -467,6 +467,10 @@ nir_tex_instr_create(void *mem_ctx, unsigned num_srcs) instr->has_predicate = false; src_init(&instr->predicate); + instr->sampler_index = 0; + instr->sampler_array_size = 0; + instr->sampler = NULL; + return instr; } |