i965/vec4: implement d2b
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 17 Feb 2016 12:08:47 +0000 (13:08 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 3 Jan 2017 10:26:50 +0000 (11:26 +0100)
commit6e570619e0755a50b2c8d57c6d1189fb9aca899d
tree2f45199753967440ba4fc7bcb47eb7813fd157f4
parentc1fb525016e41658d2dc5d581da4e83b8a075fd4
i965/vec4: implement d2b

v2 (Curro):
  - Generate the flag register with a MOV with conditional_mod instead of a CMP
    instruction, which has the benefit that we can skip loading a DF
    0.0 constant.
  - Avoid the PICK_LOW_32BIT + MOV by using the flag result and a
    SEL to set the boolean result.

v3:
  - Fix comment (Matt)

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