nir/opcodes: Simplify and fix the unpack_half_*_split_* constant expressions
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 26 Jan 2015 17:36:58 +0000 (09:36 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 26 Jan 2015 19:25:02 +0000 (11:25 -0800)
commit9bd28fe3a305605168417234a163b6702bbde9d6
treeb2a07eb30369461bd7c8eaf4af4691a87eaa3ad3
parent27c6e3e4ca665c528b94937b1b0a7c10de515d89
nir/opcodes: Simplify and fix the unpack_half_*_split_* constant expressions

Previously, these functions were explicitly writing to dst.x and dst.y.
However they both return only one component so writing to dst.y is invalid.
Also, since they only return one component, we don't need the explicit
assignment in the expression and can simplify it use an implicit
assignment.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir_opcodes.py