nir/lower_double_ops: lower floor()
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 4 Jan 2016 15:02:47 +0000 (16:02 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 28 Apr 2016 09:58:35 +0000 (11:58 +0200)
commit29541ec53175120f916a0ab74e5d82308aa9ef47
tree270a230dde4cceba602b9f4bacf23cbd6f39f418
parent5fab3d178b7093b0f0e5e98f09052f401ac714ad
nir/lower_double_ops: lower floor()

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

v2 (Sam):
  - Improve the lowering pass to remove one bcsel (Jason)

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_double_ops.c