glsl: Generate code for constant ir_binop_ldexp expressions
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 12 Jul 2016 17:53:11 +0000 (10:53 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 30 Aug 2016 23:28:02 +0000 (16:28 -0700)
commit90da8bf5477cb65b9f2e5148c05ef621a09b704f
tree8968fcdd24299f783560053059a38c743ccf0fcc
parent0f87c54d1c6ae022c9884283052a7de9d6eec710
glsl: Generate code for constant ir_binop_ldexp expressions

ldexp is weird because its two operands have different types.  Add
support for directly specifying the exact signatures of all the possible
variations of an operation.

v2: Use tuple() instead of () for clarity.  Suggested by Dylan.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Acked-by: Dylan Baker <dylan@pnwbakers.com>
src/compiler/glsl/ir_expression_operation.py