i965/vec4: implement fsign() for doubles
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 5 Feb 2016 09:12:57 +0000 (10:12 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 3 Jan 2017 10:26:50 +0000 (11:26 +0100)
commit1816ae8f68e395da26dcfea2539bafd715c8dbc4
tree5e22c3b7c7ef2b6a087c0065386f9c1f4568900b
parent6e570619e0755a50b2c8d57c6d1189fb9aca899d
i965/vec4: implement fsign() for doubles

v2: use a MOV with a conditional_mod instead of a CMP, like we do in d2b, to skip
    loading a double immediate.

v3: Fix comment (Matt)

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp