summaryrefslogtreecommitdiffstats
path: root/src/glsl/lower_clip_distance.cpp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2013-05-08 10:59:47 -0700
committerIan Romanick <ian.d.romanick@intel.com>2013-05-13 12:05:19 -0700
commitd13fbeea9634b5e3cae0213cc61706ffc316b64f (patch)
treeeebfecd35b048b776be3b2eb489f68f6763b3dea /src/glsl/lower_clip_distance.cpp
parent065da16508731f6b6a98865f392509be4f9ce07f (diff)
downloadexternal_mesa3d-d13fbeea9634b5e3cae0213cc61706ffc316b64f.zip
external_mesa3d-d13fbeea9634b5e3cae0213cc61706ffc316b64f.tar.gz
external_mesa3d-d13fbeea9634b5e3cae0213cc61706ffc316b64f.tar.bz2
glsl: Remove some stale comments about ir_call
ir_call was changed long ago to be a statement rather than an expression. That makes this comment no longer valid. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Paul Berry <stereotype441@gmail.com>
Diffstat (limited to 'src/glsl/lower_clip_distance.cpp')
-rw-r--r--src/glsl/lower_clip_distance.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/glsl/lower_clip_distance.cpp b/src/glsl/lower_clip_distance.cpp
index 2ba0052..129375d 100644
--- a/src/glsl/lower_clip_distance.cpp
+++ b/src/glsl/lower_clip_distance.cpp
@@ -226,12 +226,8 @@ lower_clip_distance_visitor::visit_leave(ir_assignment *ir)
* each of them.
*
* Note: to unroll into element-by-element assignments, we need to make
- * clones of the LHS and RHS. This is only safe if the LHS and RHS are
- * side-effect free. Fortunately, we know that they are, because the
- * only kind of rvalue that can have side effects is an ir_call, and
- * ir_calls only appear (a) as a statement on their own, or (b) as the
- * RHS of an assignment that stores the result of the call in a
- * temporary variable.
+ * clones of the LHS and RHS. This is safe because expressions and
+ * l-values are side-effect free.
*/
void *ctx = ralloc_parent(ir);
int array_size = this->old_clip_distance_var->type->array_size();