diff options
author | Eric Anholt <eric@anholt.net> | 2010-04-19 11:10:37 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-04-19 11:13:20 -0700 |
commit | 71df19f5ef6e78beb5160801f81468184b75447e (patch) | |
tree | 3b481c4db98510f0fa0c0b0c8d307621b09fc609 /ir.h | |
parent | 484606610e36ec7598f7733e9787d888b6a63d64 (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.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |