glsl: Add IR builder support for conditional assignments.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 3 Sep 2013 23:41:42 +0000 (16:41 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Sep 2013 18:52:22 +0000 (11:52 -0700)
commitf72a8498e7e2c2d3233cdfd58de3b1124a247d39
treebe0eccff93bfd952aea470bf0d9343b90aba9d12
parenteff2ca1ac3f77da81a698b08c46f245b28930ede
glsl: Add IR builder support for conditional assignments.

This adds two new signatures:

   assign(lhs, rhs, condition, writemask);
   assign(lhs, rhs, condition);

All the other existing APIs still exist.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/ir_builder.cpp
src/glsl/ir_builder.h