summaryrefslogtreecommitdiffstats
path: root/src/glsl/opt_cse.cpp
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2013-12-12 12:57:57 +0200
committerTapani Pälli <tapani.palli@intel.com>2013-12-12 17:28:06 +0200
commitc1d3080ee86cd3d914712ffe0bb533c5d6a6b271 (patch)
treea890afb0ab7df128e3dc9ed5936e927141d8c60a /src/glsl/opt_cse.cpp
parentcbe7431cdb57edb87e53e61ff97db54831cc00b7 (diff)
downloadexternal_mesa3d-c1d3080ee86cd3d914712ffe0bb533c5d6a6b271.zip
external_mesa3d-c1d3080ee86cd3d914712ffe0bb533c5d6a6b271.tar.gz
external_mesa3d-c1d3080ee86cd3d914712ffe0bb533c5d6a6b271.tar.bz2
glsl: introduce data section to ir_variable
Data section helps serialization and cloning of a ir_variable. This patch includes the helper bits used for read only ir_variables. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Paul Berry <stereotype441@gmail.com>
Diffstat (limited to 'src/glsl/opt_cse.cpp')
-rw-r--r--src/glsl/opt_cse.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/opt_cse.cpp b/src/glsl/opt_cse.cpp
index 8f73940..a2b63ee 100644
--- a/src/glsl/opt_cse.cpp
+++ b/src/glsl/opt_cse.cpp
@@ -193,7 +193,7 @@ is_cse_candidate_visitor::visit(ir_dereference_variable *ir)
/* Currently, since we don't handle kills of the ae based on variables
* getting assigned, we can only handle constant variables.
*/
- if (ir->var->read_only) {
+ if (ir->var->data.read_only) {
return visit_continue;
} else {
ok = false;