ir_constant_expression: Add support for ir_binop_min and ir_binop_max.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 9 Jul 2010 18:53:56 +0000 (11:53 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 14 Jul 2010 22:50:28 +0000 (15:50 -0700)
commit79fed377f4625da9ce6a0a32c1e7277a2e90e914
treee64453d51e8969992077ce1dbec7a66d3e08fc63
parent891a0647e419c0cd2b67e43540936bf0ac94f840
ir_constant_expression: Add support for ir_binop_min and ir_binop_max.

These now work on scalar/vector combos. Semantically, if a is a scalar,
min(a, vec2(x,y)) == vec2(min(a,x), min(a,y))
src/glsl/ir_constant_expression.cpp