i965/nir/vec4: Implement pack/unpack operations
authorAntia Puentes <apuentes@igalia.com>
Wed, 17 Jun 2015 07:29:04 +0000 (09:29 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 3 Aug 2015 16:40:49 +0000 (09:40 -0700)
commit0e874985ce50d902535e1eb766bd252c921b5d8f
tree68a2f01ec437fb2e01a48c27816b7059cff35b4b
parent3f10c2f3d73ae41ff83afcdbe225121b8336f499
i965/nir/vec4: Implement pack/unpack operations

* Lowered floating-point pack and unpack operations are not valid in VS.

* Pack and unpack 2x16 operations should be handled by lower_packing_builtins.

* Adds NIR ALU operations:
   * nir_op_pack_half_2x16
   * nir_op_unpack_half_2x16
   * nir_op_unpack_unorm_4x8
   * nir_op_unpack_snorm_4x8
   * nir_op_pack_unorm_4x8
   * nir_op_pack_snorm_4x8

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp