summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-04-19 11:10:37 -0700
committerEric Anholt <eric@anholt.net>2010-04-19 11:13:20 -0700
commit71df19f5ef6e78beb5160801f81468184b75447e (patch)
tree3b481c4db98510f0fa0c0b0c8d307621b09fc609 /ir.h
parent484606610e36ec7598f7733e9787d888b6a63d64 (diff)
Mark some variables as having usage beyond the shader's scope.
This will be important to optimization passes. We don't want to dead-code eliminate writes to out varyings, or propagate uninitialized values of uniforms.
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ir.h b/ir.h
index 471e19b43d..cb153be77d 100644
--- a/ir.h
+++ b/ir.h
@@ -151,6 +151,12 @@ public:
unsigned read_only:1;
unsigned centroid:1;
unsigned invariant:1;
+ /** If the variable is initialized outside of the scope of the shader */
+ unsigned shader_in:1;
+ /**
+ * If the variable value is later used outside of the scope of the shader.
+ */
+ unsigned shader_out:1;
unsigned mode:3;
unsigned interpolation:2;