From 9b1139649d86a27a477ae6d3c398be778288f97c Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 17 Dec 2014 17:30:27 -0800 Subject: [PATCH] SQUASH: Fix comments from eric Reviewed-by: Eric Anholt --- src/glsl/nir/nir.c | 3 +++ 1 file changed, 3 insertions(+) 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]); -- 2.30.2