nir/lower_double_ops: lower trunc()
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 4 Jan 2016 11:52:14 +0000 (12:52 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 28 Apr 2016 09:58:13 +0000 (11:58 +0200)
commit5fab3d178b7093b0f0e5e98f09052f401ac714ad
tree3cc50a18dd248b29714ddce24ebc5692ef9454bb
parent2ea3649c63f39f07b9cebda1ef0569b7347ada93
nir/lower_double_ops: lower trunc()

At least i965 hardware does not have native support for truncating doubles.

v2:
  - Simplified the implementation significantly.
  - Fixed the else branch, that was not doing what we wanted.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_double_ops.c