diff options
author | Eric Anholt <[email protected]> | 2012-04-26 18:21:43 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-07-20 10:43:19 -0700 |
commit | b3c093c79c2ec49c36af37aa290d5ae452149f6e (patch) | |
tree | fc55744beeeb712309595a5302995b3a17f67856 /src/glsl/ir.cpp | |
parent | f7561e8ecd80e915150ca63c0c79a5f9839c8e12 (diff) |
glsl: Translate the AST for uniform blocks into some IR structures.
We're going to need this structure to cross-validate the uniform
blocks between shader stages, since unused ir_variables might get
dropped. It's also the place we store the RowMajor qualifier, which
is not part of the GLSL type (since that would cause a bunch of type
equality checks to fail).
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/ir.cpp')
-rw-r--r-- | src/glsl/ir.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp index 1c9eec6e2d1..b0e38d820e6 100644 --- a/src/glsl/ir.cpp +++ b/src/glsl/ir.cpp @@ -1491,6 +1491,7 @@ ir_variable::ir_variable(const struct glsl_type *type, const char *name, this->explicit_location = false; this->has_initializer = false; this->location = -1; + this->uniform_block = -1; this->warn_extension = NULL; this->constant_value = NULL; this->constant_initializer = NULL; |