i965/nir/vec4: Implement the "sign" operation
authorAntia Puentes <apuentes@igalia.com>
Wed, 17 Jun 2015 07:47:41 +0000 (09:47 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 3 Aug 2015 16:40:49 +0000 (09:40 -0700)
commit798cb33a256f703ecaf56d4443e12055484d4bcc
treefa9bb137931a30bcb50f1ca3f70c65123eb5f870
parent8e1e6facbf828258a9a8ca09da846d1baa21d984
i965/nir/vec4: Implement the "sign" operation

Follows the vec4_visitor IR implementation but
sets the saturate value in addition.

Adds NIR ALU operations:
   * nir_op_fsign
   * nir_op_isign

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