glsl/ir_builder: Add a generic constructor for unary expressions.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Jul 2012 05:27:25 +0000 (22:27 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 12 Jul 2012 17:20:18 +0000 (10:20 -0700)
commit0bb3d4ba54f98f4d45abe598dabc905f08055cd5
tree14a604cd1798e09e4379712206d7b9f2639666ce
parentb656df990f8c1d7468e11afa2079511d8b1febf4
glsl/ir_builder: Add a generic constructor for unary expressions.

I needed to compute logs and square roots in a patch I was working on,
and wanted to use the convenient interface.  We already have a similar
constructor for binops; adding one for unops seems reasonable.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/ir_builder.cpp
src/glsl/ir_builder.h