glsl2: Fix the dereferences_variable check in ir_tree_grafting.
authorEric Anholt <eric@anholt.net>
Thu, 5 Aug 2010 19:52:29 +0000 (12:52 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 5 Aug 2010 19:56:03 +0000 (12:56 -0700)
commitc314c8f2310fa0ac51b8953e139f9504e08eb48f
treea9731c6321e61a0e59d4d1f1982d1bc242b1c9ed
parentb259eb28049fc06ebc75a7714834b9ed037a3454
glsl2: Fix the dereferences_variable check in ir_tree_grafting.

The HV doesn't descend into ir_variable, which is generally a good
thing (allowing one to distinguish between variable declarations and
refs), but here we never saw tree grafting opportunities killed
because we were looking for the ir_variable child of a dereference to
get visited.

Fixes:
glsl1-function call with inout params
src/glsl/ir_tree_grafting.cpp