From: Jason Ekstrand Date: Thu, 18 Dec 2014 01:30:27 +0000 (-0800) Subject: SQUASH: Fix comments from eric X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b1139649d86a27a477ae6d3c398be778288f97c;p=mesa.git SQUASH: Fix comments from eric Reviewed-by: Eric Anholt --- 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]);