nir: add opcodes for 16-bit packing and unpacking
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 17 Apr 2018 08:07:40 +0000 (10:07 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 3 May 2018 09:40:26 +0000 (11:40 +0200)
commitc9653cc14cac7b5de1a82307624dbb52dba2e178
tree0d7e6b4b7558dd18e89fdae3ca24d2783d7fa3f9
parent6318808a0559f7b2a8152592f0ae4e5ccc6953a9
nir: add opcodes for 16-bit packing and unpacking

Noitice that we don't need 'split' versions of the 64-bit to / from
16-bit opcodes which we require during pack lowering to implement these
operations. This is because these operations can be expressed as a
collection of 32-bit from / to 16-bit and 64-bit to / from 32-bit
operations, so we don't need new opcodes specifically for them.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_opcodes.py