summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-12-17 17:30:27 -0800
committerJason Ekstrand <[email protected]>2015-01-15 07:18:58 -0800
commit9b1139649d86a27a477ae6d3c398be778288f97c (patch)
tree78100f466d393e9ddbdf2135a13686920435b22c /src
parent8b4c86058063888813fca185633cd5746ac2321c (diff)
SQUASH: Fix comments from eric
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src')
-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]);