glsl: Move common code out of opt_algebraic's handle_expression().
authorEric Anholt <eric@anholt.net>
Thu, 24 Oct 2013 21:55:50 +0000 (14:55 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 28 Oct 2013 21:07:31 +0000 (14:07 -0700)
commit27bcb5063f5713c3e60bcff153cbc59fbe01a1f3
tree78efe5a811b5d643a434056198ba29d90deb7258
parent29996e219912fb1fdf35a6595d8f6261384a18dc
glsl: Move common code out of opt_algebraic's handle_expression().

Matt and I had each screwed up these common required patterns recently, in
ways that wouldn't have been noticed for a long time if not for code
review.  Just enforce it in the caller so that we don't rely on code
review catching these bugs.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/opt_algebraic.cpp