Rev 4358 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4358 | Rev 4401 | ||
---|---|---|---|
Line 249... | Line 249... | ||
249 | * appropriate. |
249 | * appropriate. |
250 | */ |
250 | */ |
251 | ir_visitor_status |
251 | ir_visitor_status |
252 | lower_clip_distance_visitor::visit_leave(ir_assignment *ir) |
252 | lower_clip_distance_visitor::visit_leave(ir_assignment *ir) |
253 | { |
253 | { |
- | 254 | /* First invoke the base class visitor. This causes handle_rvalue() to be |
|
- | 255 | * called on ir->rhs and ir->condition. |
|
- | 256 | */ |
|
- | 257 | ir_rvalue_visitor::visit_leave(ir); |
|
- | 258 | ||
254 | ir_dereference_variable *lhs_var = ir->lhs->as_dereference_variable(); |
259 | ir_dereference_variable *lhs_var = ir->lhs->as_dereference_variable(); |
255 | ir_dereference_variable *rhs_var = ir->rhs->as_dereference_variable(); |
260 | ir_dereference_variable *rhs_var = ir->rhs->as_dereference_variable(); |
256 | if ((lhs_var && lhs_var->var == this->old_clip_distance_var) |
261 | if ((lhs_var && lhs_var->var == this->old_clip_distance_var) |
257 | || (rhs_var && rhs_var->var == this->old_clip_distance_var)) { |
262 | || (rhs_var && rhs_var->var == this->old_clip_distance_var)) { |
258 | /* LHS or RHS of the assignment is the entire gl_ClipDistance array. |
263 | /* LHS or RHS of the assignment is the entire gl_ClipDistance array. |