projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c6480e
)
glsl: added slang_oper_num_children() helper
author
Brian Paul
<brianp@vmware.com>
Wed, 24 Jun 2009 19:16:49 +0000
(13:16 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 26 Jun 2009 19:16:33 +0000
(13:16 -0600)
src/mesa/shader/slang/slang_compile_operation.h
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_compile_operation.h
b/src/mesa/shader/slang/slang_compile_operation.h
index c69078b007077fa1810a128fe6ae53ef9cd4878c..06b452d3d9cfce41e5cb7d3333893aadcf5f8307 100644
(file)
--- a/
src/mesa/shader/slang/slang_compile_operation.h
+++ b/
src/mesa/shader/slang/slang_compile_operation.h
@@
-167,6
+167,13
@@
_slang_operation_swap(slang_operation *oper0, slang_operation *oper1);
extern void
slang_operation_add_children(slang_operation *oper, GLuint num_children);
+
+static INLINE GLuint
+slang_oper_num_children(const slang_operation *oper)
+{
+ return oper->num_children;
+}
+
static INLINE slang_operation *
slang_oper_child(slang_operation *oper, GLuint child)
{