glsl: Generate code for constant unary expressions that don't assign the destination
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 12 Jul 2016 17:51:43 +0000 (10:51 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 30 Aug 2016 23:28:02 +0000 (16:28 -0700)
commit0f87c54d1c6ae022c9884283052a7de9d6eec710
tree84613513c6ae4a3bf332228184782e1ebe004b2d
parent8cf9157786ff6afa4bb8ce81755a9944dc79320d
glsl: Generate code for constant unary expressions that don't assign the destination

These are operations like the pack functions that have separate
functions that assign multiple outputs from a single input.

v2: Correct the source and destination types.  They were previously
transposed.

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