summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/nir/nir.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c
index 3a17d382a9b..27436661d14 100644
--- a/src/glsl/nir/nir.c
+++ b/src/glsl/nir/nir.c
@@ -119,6 +119,7 @@ nir_function_overload_create(nir_function *func)
overload->num_params = 0;
overload->params = NULL;
overload->return_type = glsl_void_type();
+ overload->impl = NULL;
exec_list_push_tail(&func->overload_list, &overload->node);
overload->function = func;
@@ -450,6 +451,8 @@ nir_tex_instr_create(void *mem_ctx, unsigned num_srcs)
nir_tex_instr *instr = ralloc(mem_ctx, nir_tex_instr);
instr_init(&instr->instr, nir_instr_type_texture);
+ dest_init(&instr->dest);
+
instr->num_srcs = num_srcs;
for (unsigned i = 0; i < num_srcs; i++)
src_init(&instr->src[i]);