glsl: look for multiple variables simultaneously with find_assignment_visitor
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 22 Jun 2017 10:12:44 +0000 (12:12 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 5 Jul 2017 10:25:21 +0000 (12:25 +0200)
commit727e8ba1331f64f831626da7ca8961b560e58c5c
tree22eb61387ad8ab8e711e7afc061ccb340e171c20
parenta2b02c4948a7cecfdd64859a9375641573497cd0
glsl: look for multiple variables simultaneously with find_assignment_visitor

Save some passes over the IR.

v2: redesign to make the users of find_assignments more readable
v3:
- fix missing !
- add some comments and make the num_found check more explicit (Timothy)

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (v1)
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/glsl/linker.cpp