projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b123c6e
)
glsl: Add an exec_node_init() function, usable from C.
author
Matt Turner
<mattst88@gmail.com>
Tue, 10 Jun 2014 09:06:23 +0000
(
02:06
-0700)
committer
Matt Turner
<mattst88@gmail.com>
Tue, 10 Jun 2014 20:05:51 +0000
(13:05 -0700)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/list.h
patch
|
blob
|
history
diff --git
a/src/glsl/list.h
b/src/glsl/list.h
index 803aab56be2b3fda4a19e1d647c785cc99e79152..576bc14e44e860748b1109f3aefa7acd362d26cf 100644
(file)
--- a/
src/glsl/list.h
+++ b/
src/glsl/list.h
@@
-129,6
+129,13
@@
struct exec_node {
#endif
};
+static inline void
+exec_node_init(struct exec_node *n)
+{
+ n->next = NULL;
+ n->prev = NULL;
+}
+
static inline const struct exec_node *
exec_node_get_next_const(const struct exec_node *n)
{