summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-06-29 18:53:38 -0700
committerIan Romanick <[email protected]>2010-07-12 18:51:55 -0700
commit13f782c4ae4e38e64ec4fe87a1c24597a5e894c3 (patch)
tree073251c0f9c563a0f1ea59a6c274d03ac2c4714b /src/glsl/ir.h
parente2e5d0def490ed03970efa0a7468fef0623ae617 (diff)
linker: Implement first bits of intrastage linking
This currently involves an ugly hack so that every link doesn't result in all the built-in functions showing up as multiply defined. As soon as the built-in functions are stored in a separate compilation unit, ir_function_signature::is_built_in can be removed.
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r--src/glsl/ir.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h
index fb94b5a560d..25bf6c6d151 100644
--- a/src/glsl/ir.h
+++ b/src/glsl/ir.h
@@ -324,6 +324,9 @@ public:
/** Whether or not this function has a body (which may be empty). */
unsigned is_defined:1;
+ /** Whether or not this function signature is a built-in. */
+ unsigned is_built_in:1;
+
/** Body of instructions in the function. */
struct exec_list body;