diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2014-10-27 16:34:06 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2014-11-06 16:20:01 -0800 |
commit | 0c0bfb2ead03789164cee364fbf405994d876ca3 (patch) | |
tree | 104685c6b0e7f46ef130440a95a171216e43b407 /src/glsl/ir.h | |
parent | 13786172181bf5a753c706a7f5c3eb5d448e244e (diff) | |
download | external_mesa3d-0c0bfb2ead03789164cee364fbf405994d876ca3.zip external_mesa3d-0c0bfb2ead03789164cee364fbf405994d876ca3.tar.gz external_mesa3d-0c0bfb2ead03789164cee364fbf405994d876ca3.tar.bz2 |
glsl: Add infrastructure for "hidden" uniforms.
In the compiler, we'd like to generate implicit uniforms for internal
use. These should not be visible via the GL uniform introspection API.
To support that, we add a new ir_variable::how_declared value of
ir_var_hidden, and plumb that through to gl_uniform_storage.
v2 (idr): Fix some memory management issues in
move_hidden_uniforms_to_end. The comment block on the function has more
details.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r-- | src/glsl/ir.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h index 5c7faf6..a0f48b2 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -342,6 +342,12 @@ enum ir_var_declaration_type { * re-declared by the shader. */ ir_var_declared_implicitly, + + /** + * Variable is implicitly generated by the compiler and should not be + * visible via the API. + */ + ir_var_hidden, }; /** |