summaryrefslogtreecommitdiff
path: root/src/glsl/ir.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-10-07 15:13:38 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-10-08 14:21:23 -0700
commiteee68d3631813580a14fa51fda6f0c959279256c (patch)
tree18b91ceceac18e6df1449538e8e9fe95a3d182b9 /src/glsl/ir.h
parent2b45ba8bce6a2919762a2def3095c7b9ba05d692 (diff)
glsl: Track explicit location in AST to IR translation
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r--src/glsl/ir.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h
index fa246b5e57..3503bc9c89 100644
--- a/src/glsl/ir.h
+++ b/src/glsl/ir.h
@@ -289,6 +289,15 @@ public:
/*@}*/
/**
+ * Was the location explicitly set in the shader?
+ *
+ * If the location is explicitly set in the shader, it \b cannot be changed
+ * by the linker or by the API (e.g., calls to \c glBindAttribLocation have
+ * no effect).
+ */
+ unsigned explicit_location:1;
+
+ /**
* Storage location of the base of this variable
*
* The precise meaning of this field depends on the nature of the variable.