projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b4c860
)
SQUASH: Fix comments from eric
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Thu, 18 Dec 2014 01:30:27 +0000
(17:30 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:18:58 +0000
(07:18 -0800)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/nir/nir.c
patch
|
blob
|
history
diff --git
a/src/glsl/nir/nir.c
b/src/glsl/nir/nir.c
index 3a17d382a9bf5c00886ae0e358e8b4f63f7936da..27436661d14e15f7adf07b60b02f36e4b2b5d0b0 100644
(file)
--- 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]);